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 3ef74b0 commit 0dec419Copy full SHA for 0dec419
.github/workflows/create-tag.yml
@@ -22,8 +22,15 @@ jobs:
22
steps:
23
- name: Checkout code
24
uses: actions/checkout@v4
25
- with:
26
- ref: ${{ inputs.commit || '' }}
+
+ - name: Checkout to the input commit
27
+ run: |
28
+ if [[ -z "${{ inputs.commit }}" ]]; then
29
+ COMMIT="${{ inputs.commit }}"
30
+ else
31
+ COMMIT=git rev-parse ${{ github.sha }}^@ | grep -Fvx ${{ github.event.pull_request.head.sha }}
32
+ fi
33
+ git checkout $COMMIT
34
35
- name: Install rust toolchain
36
uses: dtolnay/rust-toolchain@stable
0 commit comments