Skip to content

Commit 60f6974

Browse files
authored
Merge pull request #5 from LinuxForHealth/merge_actions
Fix problem with updating release files
2 parents fd70c1e + dc70ce6 commit 60f6974

File tree

7 files changed

+24
-404
lines changed

7 files changed

+24
-404
lines changed

.github/workflows/prepare-release.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ jobs:
4444
fi
4545
4646
echo "VERSION=$(calculate_tag ${{ env.docker_repo }} ${{ env.docker_server }} ${{ env.docker_org }} ${RELEASE} )" >> $GITHUB_ENV
47-
>&2 echo "${VERSION} was assigned as a release tag"
47+
>&2 echo "${{ env.version }} was assigned as a release tag"
4848
- name: Update release files
4949
run: |
50-
UPDATES=0
51-
.github/workflows/scripts/update_files_with_version.sh \
50+
set -ex
51+
UPDATES=$(.github/workflows/scripts/update_files_with_version.sh \
5252
--project_dir=. \
5353
--version=${{ env.VERSION }} \
5454
--docker_org=${{ env.docker_org }} \
55-
--docker_repo=${{ env.docker_repo}} || UPDATES=$?
55+
--docker_repo=${{ env.docker_repo}})
5656
5757
>&2 echo "${UPDATES} changes were made to update the release to ${{ env.VERSION }}"
5858

.github/workflows/scripts/update_files_with_version.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ if [[ ${last_service_helm_ver} != ${VERSION} ]]; then
7272
fi
7373

7474
# app version
75-
last_app_ver="$(grep "version:" ${chart_yaml} | sed -r 's/appVersion: (.*)/\1/')"
75+
last_app_ver="$(grep "appVersion:" ${chart_yaml} | sed -r 's/appVersion: (.*)/\1/')"
7676
last_app_ver=`echo $last_app_ver | sed -e 's/^[[:space:]]*//'`
7777
if [[ ${last_app_ver} != ${VERSION} ]]; then
7878
>&2 echo "Updating ${chart_yaml} appVersion to version ${VERSION}"
@@ -104,5 +104,5 @@ if [[ ${last_gradle_tag} != ${VERSION} ]]; then
104104
updates=$((updates+1))
105105
fi
106106

107-
108-
exit $((updates))
107+
echo $updates
108+
exit 0

chart/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.1.1
18+
version: 0.1.2
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to
2222
# follow Semantic Versioning. They should reflect the version the application is using.
23-
appVersion: 0.0.1
23+
appVersion: 0.1.2
2424

2525
keywords:
2626
- ibm

chart/values.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ replicaCount: 1
77
image:
88
repository: alvearie/nlp-insights
99
pullPolicy: Always
10-
tag: 0.1.1
10+
tag: 0.1.2
1111
pullSecret:
1212

1313
service:

0 commit comments

Comments
 (0)