Skip to content

Commit

Permalink
ci: add fetch depth 0 in checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
nsenave committed Jan 27, 2024
1 parent 34e8f20 commit 396610f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
fetch-depth: 0

- name: Get previous v2 release tag
id: previousTag
run: echo "previousTag=$(git --no-pager tag --sort=creatordate --merged ${{ github.ref_name }} | grep "^2\.[0-9]\+\.[0-9]\+$" | tail -1)" >> $GITHUB_OUTPUT

- name: Print previous tag
run: echo ${{ steps.previousTag.outputs.previousTag }}

- name: Create release note
id: changelog
uses: requarks/changelog-action@v1
Expand Down

0 comments on commit 396610f

Please sign in to comment.