diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2fc16c1eb..01ce823d3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,7 +37,7 @@ jobs: run: | cd OneLifeData7 old_version=$(git describe --tags --abbrev=0 --match="2HOL_v[0-9]*" | sed -e "s/2HOL_v//") - echo "new_version=$($old_version + 1)" >> $GITHUB_ENV + echo "new_version=$(($old_version + 1))" >> $GITHUB_ENV echo -n "$new_version" > dataVersionNumber.txt - name: Commit and tag version - OneLifeData7 @@ -51,7 +51,9 @@ 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" + ls -lah + cd OneLife git -C OneLife/ tag ${{ env.tag_prefix }}${{ env.new_version }} -m "Tag automatically generated by GHA update script." git -C OneLife/ push origin --tags + env: + GITHUB_TOKEN: ${{ github.token }}