Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
Changed to read the version from json file to cfg file and also added a lock that if the step fails then the other steps are not executed
  • Loading branch information
dmtzs committed Dec 19, 2023
1 parent 20e13fe commit b04dfb4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ jobs:

- name: Set commit message and version as env variables
run: |
set -e
echo "COMMIT_MESSAGE<<EOF" >> $GITHUB_ENV
git log --format='%B' -n 1 >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
echo "VERSION=$(jq -r .version config.json)" >> $GITHUB_ENV
echo "VERSION=$(awk -F' = ' '/^version = /{print $2}' setup.cfg)" >> $GITHUB_ENV
- name: Install gh
run: |
Expand Down

0 comments on commit b04dfb4

Please sign in to comment.