Skip to content

Commit 35e1c21

Browse files
liweijie0812RSS1102autofix-ci[bot]
authored
ci:auto close release issue (#874)
* ci: add close-release-issue * ci: add close-release-issue * chore: update token * ci: 移除自动关闭发布问题的步骤 * chore: 移除事件 * [autofix.ci] apply automated fixes --------- Co-authored-by: 阿 Cai <jimmyrss1102@gmail.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent a12624f commit 35e1c21

2 files changed

Lines changed: 14 additions & 16 deletions

File tree

.github/workflows/auto-release.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ on:
88
- "tdesign-component/pubspec.yaml"
99
issue_comment:
1010
types: [edited]
11-
push:
12-
tags:
13-
- "*"
1411

1512
jobs:
1613
generator:
@@ -98,13 +95,3 @@ jobs:
9895
git config --local user.name "github-actions[bot]"
9996
git tag ${{ steps.tag-action.outputs.version }}
10097
git push origin ${{ steps.tag-action.outputs.version }}
101-
102-
close-release-issue:
103-
runs-on: ubuntu-latest
104-
if: startsWith(github.ref, 'refs/tags/')
105-
steps:
106-
- uses: TDesignOteam/workflows/actions/close-release-issue@rss1102/flutter/issue-close
107-
with:
108-
version: ${{ github.ref_name }}
109-
label: ${{ github.ref_name }}
110-
token: ${{ secrets.PERSONAL_TOKEN }}

.github/workflows/tag-push.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,22 @@ jobs:
1414
with:
1515
ref: main
1616
fetch-depth: 0
17-
token: ${{ secrets.PERSONAL_TOKEN }}
17+
token: ${{ secrets.TDESIGN_BOT_TOKEN }}
1818
- run: |
19-
git config --local user.email "github-actions[bot]@users.noreply.github.com"
20-
git config --local user.name "github-actions[bot]"
19+
git config --local user.email "tdesign@tencent.com"
20+
git config --local user.name "tdesign-bot"
2121
git status
2222
git fetch origin
2323
git merge origin/develop
2424
git push origin main
25+
26+
27+
close-release-issue:
28+
runs-on: ubuntu-latest
29+
if: github.event.ref_type == 'tag'
30+
steps:
31+
- uses: TDesignOteam/workflows/actions/close-release-issue@main
32+
with:
33+
version: ${{ github.ref_name }}
34+
label: ${{ github.ref_name }}
35+
token: ${{ secrets.TDESIGN_BOT_TOKEN }}

0 commit comments

Comments
 (0)