diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index 492382d08..8d4d5fb6b 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -8,9 +8,6 @@ on: - "tdesign-component/pubspec.yaml" issue_comment: types: [edited] - push: - tags: - - "*" jobs: generator: @@ -98,13 +95,3 @@ jobs: git config --local user.name "github-actions[bot]" git tag ${{ steps.tag-action.outputs.version }} git push origin ${{ steps.tag-action.outputs.version }} - - close-release-issue: - runs-on: ubuntu-latest - if: startsWith(github.ref, 'refs/tags/') - steps: - - uses: TDesignOteam/workflows/actions/close-release-issue@rss1102/flutter/issue-close - with: - version: ${{ github.ref_name }} - label: ${{ github.ref_name }} - token: ${{ secrets.PERSONAL_TOKEN }} diff --git a/.github/workflows/tag-push.yml b/.github/workflows/tag-push.yml index 064d55e58..7da45a4dd 100644 --- a/.github/workflows/tag-push.yml +++ b/.github/workflows/tag-push.yml @@ -14,11 +14,22 @@ jobs: with: ref: main fetch-depth: 0 - token: ${{ secrets.PERSONAL_TOKEN }} + token: ${{ secrets.TDESIGN_BOT_TOKEN }} - run: | - git config --local user.email "github-actions[bot]@users.noreply.github.com" - git config --local user.name "github-actions[bot]" + git config --local user.email "tdesign@tencent.com" + git config --local user.name "tdesign-bot" git status git fetch origin git merge origin/develop git push origin main + + + close-release-issue: + runs-on: ubuntu-latest + if: github.event.ref_type == 'tag' + steps: + - uses: TDesignOteam/workflows/actions/close-release-issue@main + with: + version: ${{ github.ref_name }} + label: ${{ github.ref_name }} + token: ${{ secrets.TDESIGN_BOT_TOKEN }}