Skip to content

Commit

Permalink
ci: delete beta tag before generating changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Sep 13, 2024
1 parent 5d9167d commit b7ae56b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/beta_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,17 @@ jobs:
ref: tags/beta
sha: ${{ github.sha }}

- name: Delete beta tag
run: git tag -d beta
continue-on-error: true

- name: changelog # or [email protected] if ensure the stable result
id: changelog
run: |
git tag -l
npx changelogithub --output CHANGELOG.md
# npx changelogen@latest --output CHANGELOG.md

- name: Upload assets
uses: softprops/action-gh-release@v2
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ jobs:
with:
fetch-depth: 0

- name: Delete beta tag
run: git tag -d beta
continue-on-error: true

- run: npx changelogithub # or [email protected] if ensure the stable result
env:
GITHUB_TOKEN: ${{secrets.MY_TOKEN}}

0 comments on commit b7ae56b

Please sign in to comment.