Skip to content

Commit

Permalink
Fix variable insertion (properly) and git identity
Browse files Browse the repository at this point in the history
  • Loading branch information
connorhsm committed Mar 24, 2024
1 parent 60a2257 commit 1cb722a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand All @@ -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

0 comments on commit 1cb722a

Please sign in to comment.