Skip to content

Commit

Permalink
Improve git fetching in tag-pushed.yml.
Browse files Browse the repository at this point in the history
Partial mas-cli#638

Signed-off-by: Ross Goldberg <[email protected]>
  • Loading branch information
rgoldberg committed Dec 21, 2024
1 parent fa018e7 commit 2b92c5d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/tag-pushed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,10 @@ jobs:
GIT_CONFIG_KEY_0: init.defaultBranch
GIT_CONFIG_VALUE_0: ${{github.event.repository.default_branch}}
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: 🖋 Delete tag lacking valid signature
run: |
git fetch --tags --force
git fetch --force origin "${GITHUB_REF}:${GITHUB_REF}"
if [[\
"$(git cat-file tag "${GITHUB_REF_NAME}")" != *'-----BEGIN SSH SIGNATURE-----'*'-----END SSH SIGNATURE-----'\
]]; then
Expand Down

0 comments on commit 2b92c5d

Please sign in to comment.