Skip to content

Commit a5ed99c

Browse files
authored
Merge pull request #20 from AllenInstitute/hotfix/release-workflow
update release.yml to include VERSION_TAG and use it for checkout reference
2 parents ab25bb1 + b7d4402 commit a5ed99c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
MAJOR_VERSION: ${{ steps.get-version-and-commit-sha.outputs.MAJOR_VERSION }}
3535
MINOR_VERSION: ${{ steps.get-version-and-commit-sha.outputs.MINOR_VERSION }}
3636
PATCH_VERSION: ${{ steps.get-version-and-commit-sha.outputs.PATCH_VERSION }}
37+
VERSION_TAG: ${{ steps.get-version-and-commit-sha.outputs.VERSION_TAG }}
3738
COMMIT_SHA: ${{ steps.get-version-and-commit-sha.outputs.COMMIT_SHA }}
3839
steps:
3940
- name: Checkout
@@ -82,6 +83,7 @@ jobs:
8283
echo "PATCH_VERSION=$patch_version" >> $GITHUB_OUTPUT
8384
short_version="$major_version.$minor_version"
8485
echo "SHORT_VERSION=$short_version" >> $GITHUB_OUTPUT
86+
echo "VERSION_TAG=$latest_tag" >> $GITHUB_OUTPUT
8587
commit_sha=$(git rev-list -n 1 $latest_tag)
8688
echo "COMMIT_SHA=$commit_sha" >> $GITHUB_OUTPUT
8789
- name: Show version
@@ -91,6 +93,7 @@ jobs:
9193
echo MAJOR_VERSION: ${{ steps.get-version-and-commit-sha.outputs.MAJOR_VERSION }}
9294
echo MINOR_VERSION: ${{ steps.get-version-and-commit-sha.outputs.MINOR_VERSION }}
9395
echo PATCH_VERSION: ${{ steps.get-version-and-commit-sha.outputs.PATCH_VERSION }}
96+
echo VERSION_TAG: ${{ steps.get-version-and-commit-sha.outputs.VERSION_TAG }}
9497
echo COMMIT_SHA: ${{ steps.get-version-and-commit-sha.outputs.COMMIT_SHA }}
9598
9699
build:
@@ -101,7 +104,8 @@ jobs:
101104
steps:
102105
- uses: actions/checkout@v4
103106
with:
104-
ref: ${{ needs.bump.outputs.COMMIT_SHA }}
107+
ref: ${{ needs.bump.outputs.VERSION_TAG }}
108+
ssh-key: ${{ secrets.AIBSGITHUB_PRIVATE_KEY }}
105109
- name: Set up Python ${{ github.event.inputs.python-version }}
106110
uses: actions/setup-python@v4
107111
with:

0 commit comments

Comments
 (0)