From b04dfb47ef80b2dac95cc5f1502978cb3b0604c1 Mon Sep 17 00:00:00 2001 From: dmtzs Date: Tue, 19 Dec 2023 17:06:43 -0600 Subject: [PATCH] Update release.yml 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 --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6e66d6d..a91a671 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,10 +30,11 @@ jobs: - name: Set commit message and version as env variables run: | + set -e echo "COMMIT_MESSAGE<> $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: |