Skip to content

Commit

Permalink
Fix variable insertion in and tagging release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
connorhsm committed Mar 24, 2024
1 parent e0e30e2 commit 60a2257
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
env:
tag_prefix: 2HOL_v
steps:
- name: Authentication for other repositories
- name: Setup auth for other repositories
uses: actions/create-github-app-token@v1
id: app-token
with:
Expand Down Expand Up @@ -40,18 +40,16 @@ jobs:
echo "new_version=$($oldVersion + 1)" >> $GITHUB_ENV
echo -n "$new_version" > dataVersionNumber.txt
- name: Commit and tag version bump - OneLifeData7 #TODO does this order work?
- name: Commit and tag version - OneLifeData7 #TODO does this order work?
uses: EndBug/add-and-commit@v9
with:
cwd: OneLifeData7/
default_author: github_actions
message: Updatated dataVersionNumber to $new_version
tag: $tag_prefix$new_version -m "Tag automatically generated by update script."
message: Updatated dataVersionNumber to ${{ env.new_version }}
tag: ${{ env.tag_prefix }}${{ env.new_version }} -m "Tag automatically generated by GHA update script."
new_branch: test-release

- name: Tag version bump - OneLife
uses: EndBug/add-and-commit@v9
with:
cwd: OneLife/
default_author: github_actions
tag: $tag_prefix$new_version -m "Tag automatically generated by update script."
- name: Tag version - OneLife
run: |
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 60a2257

Please sign in to comment.