Skip to content

Commit

Permalink
chore: fix release ci (#36)
Browse files Browse the repository at this point in the history
add tag checkout in release ci
  • Loading branch information
agus-xyz authored Aug 28, 2022
1 parent 24758ff commit 7017afb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/ci-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,15 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
# if the action is a push, diff with the previous main commit
# fetch tags
- name: Checkout tags
run: |
if git rev-parse --is-shallow-repository | grep -q 'true'; then
git fetch --prune --unshallow --tags -f
else
git fetch --prune --tags -f
fi
# diff with the previous tag
- name: Build changelog
id: build_changelog
run: |
Expand Down

0 comments on commit 7017afb

Please sign in to comment.