Skip to content

Commit

Permalink
fix: get tag annotations workflow publish
Browse files Browse the repository at this point in the history
  • Loading branch information
isakruas committed Oct 27, 2024
1 parent 4188aea commit 2d27803
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,18 @@ jobs:
steps:
- name: "Checkout"
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history so that you can access all tags/branches

# See https://github.com/actions/checkout/issues/290
# Fetch specific branches/tags without direct fetching into the checked-out branch
- name: "Get Tag Annotations"
run: git fetch -f origin ${{ github.ref }}:${{ github.ref }}
run: |
# Fetch all the tags
git fetch --tags
# Update origin with all branches, except for the current checked-out branch
git remote set-branches --add origin '*'
git pull --all
- name: "Setup"
id: setup
Expand Down

0 comments on commit 2d27803

Please sign in to comment.