Skip to content

Commit

Permalink
ci: unite action version (ant-design#32537)
Browse files Browse the repository at this point in the history
* ci: unite action version

* Update verify-package-version.yml

* Update issue-open-check.yml

* Update preview-start.yml

* Update preview-deploy.yml

* Update pr-open-check.yml

* Update issue-remove-inactive.yml
  • Loading branch information
xrkffgg authored Oct 19, 2021
1 parent 2bb9407 commit 9664875
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/issue-open-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ jobs:
issue-open-check:
runs-on: ubuntu-latest
steps:
- uses: actions-cool/check-user-permission@v1.0.0
- uses: actions-cool/check-user-permission@v1
id: checkUser
with:
require: 'write'
check-bot: true

- name: check invalid
if: (contains(github.event.issue.body, 'ant-design-issue-helper') == false) && (steps.checkUser.outputs.result == 'false')
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/issue-remove-inactive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Issue Remove Inactive

on:
issues:
types: [edited, reopened]
types: [edited]
issue_comment:
types: [created, edited]

Expand All @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: remove inactive
if: github.event.issue.state == 'open'
if: github.event.issue.state == 'open' && github.actor == github.event.issue.user.login
uses: actions-cool/issues-helper@v2
with:
actions: 'remove-labels'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr-open-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
refuse:
runs-on: ubuntu-latest
steps:
- uses: actions-cool/pr-welcome@v1.1.3
- uses: actions-cool/pr-welcome@v1
with:
refuse-issue-label: '🎱 Collaborate PR only'
need-creator-authority: 'write'
Expand All @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: check fill
uses: actions-cool/pr-check-fill@v1.1.0
uses: actions-cool/pr-check-fill@v1
with:
filter-start: '|'
require-include: '🇺🇸 English, 🇨🇳 Chinese, 🇺🇸 英文, 🇨🇳 中文'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/preview-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
npx surge --project ./ --domain $DEPLOY_DOMAIN --token ${{ secrets.SURGE_TOKEN }}
- name: update status comment
uses: actions-cool/maintain-one-comment@v1.1.0
uses: actions-cool/maintain-one-comment@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
body: |
Expand All @@ -54,7 +54,7 @@ jobs:

- name: The job has failed
if: ${{ failure() }}
uses: actions-cool/maintain-one-comment@v1.1.0
uses: actions-cool/maintain-one-comment@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
body: |
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
run: echo "::set-output name=id::$(<pr-id.txt)"

- name: The job has failed
uses: actions-cool/maintain-one-comment@v1.1.0
uses: actions-cool/maintain-one-comment@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
body: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/preview-start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: update status comment
uses: actions-cool/maintain-one-comment@v1.1.0
uses: actions-cool/maintain-one-comment@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
body: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/verify-package-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: verify-version
uses: actions-cool/verify-package-version@v1.1.1
uses: actions-cool/verify-package-version@v1
with:
title-include-content: 'docs'
title-include-version: true
Expand Down

0 comments on commit 9664875

Please sign in to comment.