Bugfix release automation (#9)

This commit is contained in:
Matt White
2021-01-08 16:40:53 +00:00
committed by GitHub
parent e8c481eac3
commit 089d1603f6
2 changed files with 7 additions and 5 deletions
+2 -2
View File
@@ -66,8 +66,8 @@ jobs:
esac
- name: Update config.json if release
run: |
export RELEASE=$( $GITHUB_REF | sed s/v// )
jq ".version=\"$RELEASE\"" < /config.json > config_release.json
export RELEASE=$( $GITHUB_REF | cut -d/ -f3 | sed s/v// )
jq ".version=\"$RELEASE\"" < config.json > config_release.json
rm config.json && mv config_release.json config.json
if: ${{ github.event_name == 'release' }}
- name: Set environment variables from config.json