Skip to content

Commit 3e2aa5c

Browse files
committed
chore: update retag workflow
1 parent 56c661d commit 3e2aa5c

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/git-tag.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,25 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- name: Verify password
27+
env:
28+
INPUT_PASSWORD: ${{ inputs.password }}
2729
run: |
28-
INPUT_HASH=$(echo -n "${{ inputs.password }}" | sha256sum | cut -d' ' -f1)
29-
EXPECTED_HASH="de627b42af903492a7a89d308e7cfd087f4fb87a9eab1cb8f9a414d256f7b63c"
30+
INPUT_HASH=$(echo -n "$INPUT_PASSWORD" | sha256sum | cut -d' ' -f1)
31+
EXPECTED_HASH="9e93bfb416b0a642b5d13bee30c46fb9fae5c5233390270d0568a98e66154f7b"
3032
if [ "$INPUT_HASH" != "$EXPECTED_HASH" ]; then
3133
echo "Invalid password"
3234
exit 1
3335
fi
3436
3537
- name: Checkout repository
3638
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
39+
with:
40+
ref: ${{ inputs.commit }}
41+
token: ${{ secrets.AZTEC_BOT_GITHUB_TOKEN }}
3742

3843
- name: Create/update tag
39-
env:
40-
GITHUB_TOKEN: ${{ secrets.AZTEC_BOT_GITHUB_TOKEN }}
4144
run: |
4245
git config user.name "AztecBot"
4346
git config user.email "[email protected]"
44-
git fetch origin "${{ inputs.commit }}"
45-
git tag -f "${{ inputs.tag }}" "${{ inputs.commit }}"
47+
git tag "${{ inputs.tag }}" "${{ inputs.commit }}"
4648
git push origin "${{ inputs.tag }}"

0 commit comments

Comments
 (0)