Skip to content

Commit 24a5966

Browse files
authored
Merge pull request #1 from remcovanmook/fix/publish-workflow-dispatch
fix: skip tag-annotation fetch step on workflow_dispatch
2 parents bdb8525 + 66126ad commit 24a5966

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎.github/workflows/publish.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ jobs:
2424
fetch-tags: true
2525

2626
# See https://github.com/actions/checkout/issues/290
27+
# Only needed for tag-triggered runs; fetching a branch ref into the
28+
# checked-out branch causes git to refuse with exit code 128.
2729
- name: "Get Tag Annotations"
30+
if: startsWith(github.ref, 'refs/tags/')
2831
run: git fetch -f origin ${{ github.ref }}:${{ github.ref }}
2932

3033
- name: "Setup"

0 commit comments

Comments
 (0)