@@ -34,10 +34,13 @@ jobs:
34
34
MAJOR_VERSION : ${{ steps.get-version-and-commit-sha.outputs.MAJOR_VERSION }}
35
35
MINOR_VERSION : ${{ steps.get-version-and-commit-sha.outputs.MINOR_VERSION }}
36
36
PATCH_VERSION : ${{ steps.get-version-and-commit-sha.outputs.PATCH_VERSION }}
37
+ VERSION_TAG : ${{ steps.get-version-and-commit-sha.outputs.VERSION_TAG }}
37
38
COMMIT_SHA : ${{ steps.get-version-and-commit-sha.outputs.COMMIT_SHA }}
38
39
steps :
39
40
- name : Checkout
40
41
uses : actions/checkout@v4
42
+ with :
43
+ ssh-key : ${{ secrets.AIBSGITHUB_PRIVATE_KEY }}
41
44
- name : Set up Python ${{ github.event.inputs.python-version }}
42
45
uses : actions/setup-python@v4
43
46
with :
80
83
echo "PATCH_VERSION=$patch_version" >> $GITHUB_OUTPUT
81
84
short_version="$major_version.$minor_version"
82
85
echo "SHORT_VERSION=$short_version" >> $GITHUB_OUTPUT
83
- commit_sha=$(git rev-parse $latest_tag)
86
+ echo "VERSION_TAG=$latest_tag" >> $GITHUB_OUTPUT
87
+ commit_sha=$(git rev-list -n 1 $latest_tag)
84
88
echo "COMMIT_SHA=$commit_sha" >> $GITHUB_OUTPUT
85
89
- name : Show version
86
90
run : |
89
93
echo MAJOR_VERSION: ${{ steps.get-version-and-commit-sha.outputs.MAJOR_VERSION }}
90
94
echo MINOR_VERSION: ${{ steps.get-version-and-commit-sha.outputs.MINOR_VERSION }}
91
95
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 }}
92
97
echo COMMIT_SHA: ${{ steps.get-version-and-commit-sha.outputs.COMMIT_SHA }}
93
98
94
99
build :
99
104
steps :
100
105
- uses : actions/checkout@v4
101
106
with :
102
- ref : ${{ needs.bump.outputs.COMMIT_SHA }}
107
+ ref : ${{ needs.bump.outputs.VERSION_TAG }}
108
+ ssh-key : ${{ secrets.AIBSGITHUB_PRIVATE_KEY }}
103
109
- name : Set up Python ${{ github.event.inputs.python-version }}
104
110
uses : actions/setup-python@v4
105
111
with :
0 commit comments