From b7ae56b109172759a965f030dd28bb658270a2df Mon Sep 17 00:00:00 2001 From: Andy Hsu Date: Sat, 14 Sep 2024 00:50:24 +0800 Subject: [PATCH] ci: delete beta tag before generating changelog --- .github/workflows/beta_release.yml | 5 +++++ .github/workflows/changelog.yml | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/beta_release.yml b/.github/workflows/beta_release.yml index 482195f9c3c..32073eb9663 100644 --- a/.github/workflows/beta_release.yml +++ b/.github/workflows/beta_release.yml @@ -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 changelogithub@0.12 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: diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 55efd9a8984..056883d6d96 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -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 changelogithub@0.12 if ensure the stable result env: GITHUB_TOKEN: ${{secrets.MY_TOKEN}}