From 1cb722a65dd4f11752c561902df4360b0f652f49 Mon Sep 17 00:00:00 2001 From: Connor Smith Date: Sun, 24 Mar 2024 20:52:39 +1100 Subject: [PATCH] Fix variable insertion (properly) and git identity --- .github/workflows/release.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 02f03f6b7..0307f9848 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,10 +37,10 @@ jobs: run: | cd OneLifeData7 old_version=$(git describe --tags --abbrev=0 --match="2HOL_v[0-9]*") - echo "new_version=$($oldVersion + 1)" >> $GITHUB_ENV + echo "new_version=$($old_version + 1)" >> $GITHUB_ENV echo -n "$new_version" > dataVersionNumber.txt - - name: Commit and tag version - OneLifeData7 #TODO does this order work? + - name: Commit and tag version - OneLifeData7 uses: EndBug/add-and-commit@v9 with: cwd: OneLifeData7/ @@ -51,5 +51,7 @@ jobs: - name: Tag version - OneLife run: | + git -C OneLife/ config user.name "github-actions" + git -C OneLife/ config user.email "41898282+github-actions[bot]@users.noreply.github.com" git -C OneLife/ tag ${{ env.tag_prefix }}${{ env.new_version }} -m "Tag automatically generated by GHA update script." git -C OneLife/ push origin --tags