Browse Source

ci: optimize action name & trigger (#32244)

* Update compressed-size.yml

* Update issue-check-inactive.yml

* Update issue-close-require.yml

* Update issue-labeled.yml

* Update issue-open-check.yml

* Update issue-remove-inactive.yml

* Update pr-check-merge.yml

* Update preview-build.yml

* Update preview-start.yml

* Update rebase.yml

* Update ui.yml

* Update issue-labeled.yml
pull/32262/head
xrkffgg 3 years ago
committed by GitHub
parent
commit
87c34c8e90
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      .github/workflows/compressed-size.yml
  2. 4
      .github/workflows/issue-check-inactive.yml
  3. 8
      .github/workflows/issue-close-require.yml
  4. 14
      .github/workflows/issue-labeled.yml
  5. 12
      .github/workflows/issue-open-check.yml
  6. 2
      .github/workflows/issue-remove-inactive.yml
  7. 4
      .github/workflows/pr-check-merge.yml
  8. 4
      .github/workflows/preview-build.yml
  9. 4
      .github/workflows/preview-start.yml
  10. 4
      .github/workflows/rebase.yml
  11. 1
      .github/workflows/ui.yml

9
.github/workflows/compressed-size.yml

@ -1,10 +1,11 @@
name: 📦 Compressed Size name: 📦 Compressed Size
on: [pull_request] on:
pull_request:
types: [opened, synchronize]
jobs: jobs:
build: compressed-size:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
CI_JOB_NUMBER: 1 CI_JOB_NUMBER: 1
@ -16,4 +17,4 @@ jobs:
repo-token: "${{ secrets.GITHUB_TOKEN }}" repo-token: "${{ secrets.GITHUB_TOKEN }}"
pattern: "./dist/**/*.min.{js,css}" pattern: "./dist/**/*.min.{js,css}"
build-script: "dist:esbuild-no-dup-check" build-script: "dist:esbuild-no-dup-check"
clean-script: "clean-lockfiles" clean-script: "clean-lockfiles"

4
.github/workflows/issue-check-inactive.yml

@ -5,11 +5,11 @@ on:
- cron: "0 0 */15 * *" - cron: "0 0 */15 * *"
jobs: jobs:
check-inactive: issue-check-inactive:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: check-inactive - name: check-inactive
uses: actions-cool/issues-helper@v1.7 uses: actions-cool/issues-helper@v2
with: with:
actions: 'check-inactive' actions: 'check-inactive'
inactive-label: 'Inactive' inactive-label: 'Inactive'

8
.github/workflows/issue-close-require.yml

@ -5,18 +5,18 @@ on:
- cron: "0 0 * * *" - cron: "0 0 * * *"
jobs: jobs:
close-issues: issue-close-require:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: need reproduce - name: need reproduce
uses: actions-cool/issues-helper@v1.7 uses: actions-cool/issues-helper@v2
with: with:
actions: 'close-issues' actions: 'close-issues'
labels: '🤔 Need Reproduce' labels: '🤔 Need Reproduce'
inactive-day: 3 inactive-day: 3
- name: needs more info - name: needs more info
uses: actions-cool/issues-helper@v1.7 uses: actions-cool/issues-helper@v2
with: with:
actions: 'close-issues' actions: 'close-issues'
labels: 'needs-more-info' labels: 'needs-more-info'

14
.github/workflows/issue-labeled.yml

@ -7,12 +7,12 @@ on:
types: [labeled] types: [labeled]
jobs: jobs:
reply-helper: issue-labeled:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: help wanted - name: help wanted
if: github.event.label.name == 'help wanted' if: github.event.label.name == 'help wanted'
uses: actions-cool/issues-helper@v1.2 uses: actions-cool/issues-helper@v2
with: with:
actions: 'create-comment' actions: 'create-comment'
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
@ -26,7 +26,7 @@ jobs:
- name: 🤔 Need Reproduce - name: 🤔 Need Reproduce
if: github.event.label.name == '🤔 Need Reproduce' if: github.event.label.name == '🤔 Need Reproduce'
uses: actions-cool/issues-helper@v1.2 uses: actions-cool/issues-helper@v2
with: with:
actions: 'create-comment' actions: 'create-comment'
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
@ -40,7 +40,7 @@ jobs:
- name: Usage - name: Usage
if: github.event.label.name == 'Usage' || github.event.label.name == 'Question' if: github.event.label.name == 'Usage' || github.event.label.name == 'Question'
uses: actions-cool/issues-helper@v1.2 uses: actions-cool/issues-helper@v2
with: with:
actions: 'create-comment,close-issue' actions: 'create-comment,close-issue'
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
@ -52,7 +52,7 @@ jobs:
- name: 3.x - name: 3.x
if: github.event.label.name == '3.x' if: github.event.label.name == '3.x'
uses: actions-cool/issues-helper@v1.2 uses: actions-cool/issues-helper@v2
with: with:
actions: 'create-comment,close-issue' actions: 'create-comment,close-issue'
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
@ -64,7 +64,7 @@ jobs:
- name: invalid - name: invalid
if: github.event.label.name == 'Invalid' if: github.event.label.name == 'Invalid'
uses: actions-cool/issues-helper@v1.2 uses: actions-cool/issues-helper@v2
with: with:
actions: 'create-comment,close-issue' actions: 'create-comment,close-issue'
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
@ -76,7 +76,7 @@ jobs:
- name: rtl - name: rtl
if: github.event.label.name == 'rtl' if: github.event.label.name == 'rtl'
uses: actions-cool/issues-helper@v2.4.0 uses: actions-cool/issues-helper@v2
with: with:
actions: 'add-assignees' actions: 'add-assignees'
assignees: 'xrkffgg' assignees: 'xrkffgg'

12
.github/workflows/issue-open-check.yml

@ -5,7 +5,7 @@ on:
types: [opened] types: [opened]
jobs: jobs:
check-issue: issue-open-check:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions-cool/check-user-permission@v1.0.0 - uses: actions-cool/check-user-permission@v1.0.0
@ -15,7 +15,7 @@ jobs:
- name: check invalid - name: check invalid
if: (contains(github.event.issue.body, 'ant-design-issue-helper') == false) && (steps.checkUser.outputs.result == 'false') if: (contains(github.event.issue.body, 'ant-design-issue-helper') == false) && (steps.checkUser.outputs.result == 'false')
uses: actions-cool/issues-helper@v1.2 uses: actions-cool/issues-helper@v2
with: with:
actions: 'create-comment,add-labels,close-issue' actions: 'create-comment,add-labels,close-issue'
issue-number: ${{ github.event.issue.number }} issue-number: ${{ github.event.issue.number }}
@ -26,7 +26,7 @@ jobs:
你好 @${{ github.event.issue.user.login }},为了能够进行高效沟通,我们对 issue 有一定的格式要求,你的 issue 因为不符合要求而被自动关闭。你可以通过 [issue 助手](http://new-issue.ant.design) 来创建 issue 以方便我们定位错误。谢谢配合! 你好 @${{ github.event.issue.user.login }},为了能够进行高效沟通,我们对 issue 有一定的格式要求,你的 issue 因为不符合要求而被自动关闭。你可以通过 [issue 助手](http://new-issue.ant.design) 来创建 issue 以方便我们定位错误。谢谢配合!
- name: check website - name: check website
uses: actions-cool/issues-helper@v1.2 uses: actions-cool/issues-helper@v2
id: checkid id: checkid
with: with:
actions: 'check-issue' actions: 'check-issue'
@ -36,7 +36,7 @@ jobs:
- name: deal website - name: deal website
if: steps.checkid.outputs.check-result == 'true' if: steps.checkid.outputs.check-result == 'true'
uses: actions-cool/issues-helper@v1.2 uses: actions-cool/issues-helper@v2
with: with:
actions: 'create-comment,close-issue' actions: 'create-comment,close-issue'
issue-number: ${{ github.event.issue.number }} issue-number: ${{ github.event.issue.number }}
@ -59,10 +59,10 @@ jobs:
* Ant Design Mobile: http://antd-mobile.gitee.io * Ant Design Mobile: http://antd-mobile.gitee.io
* Ant Motion: http://ant-motion.gitee.io * Ant Motion: http://ant-motion.gitee.io
* Ant Design Pro Preview : https://prosite.z23.web.core.windows.net * Ant Design Pro Preview : https://prosite.z23.web.core.windows.net
- name: check ie - name: check ie
if: contains(github.event.issue.body, 'ant-design-issue-helper') == true && contains(github.event.issue.title, 'IE9') == true || contains(github.event.issue.title, 'IE 9') == true || contains(github.event.issue.title, 'IE10') == true || contains(github.event.issue.title, 'IE 10') == true || contains(github.event.issue.title, 'IE11') == true || contains(github.event.issue.title, 'IE 11') == true || contains(github.event.issue.title, 'Internet Explorer') == true || contains(github.event.issue.body, 'IE9') == true || contains(github.event.issue.body, 'IE 9') == true || contains(github.event.issue.body, 'IE10') == true || contains(github.event.issue.body, 'IE 10') == true || contains(github.event.issue.body, 'IE11') == true || contains(github.event.issue.body, 'IE 11') == true || contains(github.event.issue.body, 'Internet Explorer') == true if: contains(github.event.issue.body, 'ant-design-issue-helper') == true && contains(github.event.issue.title, 'IE9') == true || contains(github.event.issue.title, 'IE 9') == true || contains(github.event.issue.title, 'IE10') == true || contains(github.event.issue.title, 'IE 10') == true || contains(github.event.issue.title, 'IE11') == true || contains(github.event.issue.title, 'IE 11') == true || contains(github.event.issue.title, 'Internet Explorer') == true || contains(github.event.issue.body, 'IE9') == true || contains(github.event.issue.body, 'IE 9') == true || contains(github.event.issue.body, 'IE10') == true || contains(github.event.issue.body, 'IE 10') == true || contains(github.event.issue.body, 'IE11') == true || contains(github.event.issue.body, 'IE 11') == true || contains(github.event.issue.body, 'Internet Explorer') == true
uses: actions-cool/issues-helper@v1.2 uses: actions-cool/issues-helper@v2
with: with:
actions: 'add-labels' actions: 'add-labels'
issue-number: ${{ github.event.issue.number }} issue-number: ${{ github.event.issue.number }}

2
.github/workflows/issue-remove-inactive.yml

@ -7,7 +7,7 @@ on:
types: [created, edited] types: [created, edited]
jobs: jobs:
remove-inactive: issue-remove-inactive:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: remove inactive - name: remove inactive

4
.github/workflows/pr-check-merge.yml

@ -5,11 +5,11 @@ on:
types: [opened] types: [opened]
jobs: jobs:
comment: pr-check-merge:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: (github.event.pull_request.head.ref == 'feature' || github.event.pull_request.head.ref == 'master') && github.event.pull_request.head.user.login == 'ant-design' if: (github.event.pull_request.head.ref == 'feature' || github.event.pull_request.head.ref == 'master') && github.event.pull_request.head.user.login == 'ant-design'
steps: steps:
- uses: actions-cool/issues-helper@v2.2.1 - uses: actions-cool/issues-helper@v2
with: with:
actions: 'create-comment' actions: 'create-comment'
issue-number: ${{ github.event.number }} issue-number: ${{ github.event.number }}

4
.github/workflows/preview-build.yml

@ -2,7 +2,9 @@
name: Preview Build name: Preview Build
on: pull_request on:
pull_request:
types: [opened, synchronize, reopened]
jobs: jobs:
# Prepare node modules. Reuse cache if available # Prepare node modules. Reuse cache if available

4
.github/workflows/preview-start.yml

@ -6,7 +6,9 @@
name: Preview Start name: Preview Start
on: pull_request_target on:
pull_request_target:
types: [opened, synchronize, reopened]
jobs: jobs:
preview-start: preview-start:

4
.github/workflows/rebase.yml

@ -1,7 +1,9 @@
name: Automatic Rebase
on: on:
issue_comment: issue_comment:
types: [created] types: [created]
name: Automatic Rebase
jobs: jobs:
rebase: rebase:
name: Rebase name: Rebase

1
.github/workflows/ui.yml

@ -2,6 +2,7 @@ name: 📷 UI
on: on:
pull_request: pull_request:
types: [opened, synchronize, reopened]
push: push:
branches: branches:
- master - master

Loading…
Cancel
Save