We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df08004 commit c128c18Copy full SHA for c128c18
.github/workflows/bump-and-publish.yml
@@ -5,6 +5,8 @@ on:
5
6
jobs:
7
bump:
8
+ outputs:
9
+ new_sha: ${{ steps.sha.outputs.SHA }}
10
runs-on: ubuntu-latest
11
steps:
12
- name: Check out the repository
@@ -41,7 +43,13 @@ jobs:
41
43
github_token: ${{ secrets.GITHUB_TOKEN }}
42
44
branch: ${{ github.ref }}
45
tags: true
-
46
+
47
+ - name: get sha
48
+ id: sha
49
+ run: |
50
+ sha_new=$(git rev-parse HEAD)
51
+ echo $sha_new
52
+ echo "::set-output name=SHA::$sha_new"
53
54
publish:
55
needs: bump
@@ -51,7 +59,7 @@ jobs:
59
uses: actions/checkout@v4
60
with:
61
fetch-depth: 0
- fetch-tags: true
62
+ ref: ${{ needs.bump.outputs.new_sha }}
63
56
64
- name: Set up Python
57
65
uses: actions/setup-python@v5
0 commit comments