Skip to content

Commit

Permalink
Change: Ci: on release set app version
Browse files Browse the repository at this point in the history
  • Loading branch information
nichtsfrei committed Dec 19, 2023
1 parent 27179f3 commit a902bf9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ jobs:
python3 -m pip install pontos
# ignore failure on setting version
pontos-version update ${{ env.NEW_VERSION }} || true
# set app version on chart
awk '{sub(/appVersion: "[0-9]+\.[0-9]+\.[0-9]+"/,"appVersion: \"${{ env.NEW_VERSION }}\""); print}' charts/openvasd/Chart.yaml | tee /tmp/Chart.yaml
mv /tmp/Chart.yaml charts/openvasd/Chart.yaml
# as soon as pontos-version release is available and it supports cargo do
# cd rust
# pontos-version update ${{ env.NEW_VERSION }}
Expand All @@ -163,6 +166,7 @@ jobs:
echo "There are no modified files, skipping."
else
git add CMakeLists.txt
git add charts/openvasd/Chart.yaml
git commit -m "Automated commit: change version from ${{ env.LATEST_VERSION }} -> ${{ env.NEW_VERSION }}"
git push origin ${{ env.RELEASE_REF }}
fi
Expand Down

0 comments on commit a902bf9

Please sign in to comment.