Skip to content

Commit

Permalink
chore: fix previous_tag
Browse files Browse the repository at this point in the history
  • Loading branch information
ImLunaHey committed Sep 21, 2023
1 parent 2e27cd2 commit 6ce4e5f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,18 @@ jobs:
run: bun run build

- name: Get previous tag
id: previousTag
run: git --no-pager tag --sort=creatordate --merged ${{ github.ref_name }} | tail -2 | head -1
id: previous_tag
run: |
previous_tag=$(git --no-pager tag --sort=creatordate --merged ${{ github.ref_name }} | tail -2 | head -1)
echo "{previous_tag}={previous_tag}" >> $GITHUB_OUTPUT
- name: Generate CHANGELOG for Github release
id: changelog
uses: requarks/changelog-action@v1
with:
token: ${{ github.token }}
fromTag: ${{ github.ref_name }}
toTag: ${{ steps.previousTag.outputs.stdout }}
toTag: ${{ steps.previous_tag.outputs.previous_tag }}
writeToFile: false

- name: Bump package version
Expand Down

0 comments on commit 6ce4e5f

Please sign in to comment.