File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -25,14 +25,14 @@ jobs:
25
25
with :
26
26
fetch-depth : 0
27
27
28
- - name : Checkout to the input commit
28
+ - name : Compute the commit
29
29
run : |
30
30
if [[ -z "${{ inputs.commit }}" ]]; then
31
31
COMMIT=$(git rev-parse ${{ github.sha }}^@ | grep -Fvx ${{ github.event.pull_request.head.sha }})
32
32
else
33
33
COMMIT="${{ inputs.commit }}"
34
34
fi
35
- git checkout $COMMIT
35
+ echo "commit= $COMMIT" >> $GITHUB_ENV
36
36
37
37
- name : Install rust toolchain
38
38
uses : dtolnay/rust-toolchain@stable
42
42
echo "version=$(cargo pkgid -p bindgen | cut -d '#' -f 2)" >> $GITHUB_ENV
43
43
44
44
- name : Create tag
45
- run : |
46
- TAG_NAME="v${{ env.version }}"
47
- git tag -s $TAG_NAME
48
- git push origin $TAG_NAME
45
+ uses :
mathieudutour/[email protected]
46
+ with :
47
+ github_token : ${{ secrets.GITHUB_TOKEN }}
48
+ commit_sha : ${{ env.commit }}
49
+ custom_tag : ${{ env.version }}
You can’t perform that action at this time.
0 commit comments