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
on: [pull_request]
on:
pull_request:
types: [opened, synchronize]
jobs:
build:
compressed-size:
runs-on: ubuntu-latest
env:
CI_JOB_NUMBER: 1
@ -16,4 +17,4 @@ jobs:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
pattern: "./dist/**/*.min.{js,css}"
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 * *"
jobs:
check-inactive:
issue-check-inactive:
runs-on: ubuntu-latest
steps:
- name: check-inactive
uses: actions-cool/issues-helper@v1.7
uses: actions-cool/issues-helper@v2
with:
actions: 'check-inactive'
inactive-label: 'Inactive'

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

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

14
.github/workflows/issue-labeled.yml

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

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

@ -5,7 +5,7 @@ on:
types: [opened]
jobs:
check-issue:
issue-open-check:
runs-on: ubuntu-latest
steps:
- uses: actions-cool/check-user-permission@v1.0.0
@ -15,7 +15,7 @@ jobs:
- name: check invalid
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:
actions: 'create-comment,add-labels,close-issue'
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 以方便我们定位错误。谢谢配合!
- name: check website
uses: actions-cool/issues-helper@v1.2
uses: actions-cool/issues-helper@v2
id: checkid
with:
actions: 'check-issue'
@ -36,7 +36,7 @@ jobs:
- name: deal website
if: steps.checkid.outputs.check-result == 'true'
uses: actions-cool/issues-helper@v1.2
uses: actions-cool/issues-helper@v2
with:
actions: 'create-comment,close-issue'
issue-number: ${{ github.event.issue.number }}
@ -59,10 +59,10 @@ jobs:
* Ant Design Mobile: http://antd-mobile.gitee.io
* Ant Motion: http://ant-motion.gitee.io
* Ant Design Pro Preview : https://prosite.z23.web.core.windows.net
- 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
uses: actions-cool/issues-helper@v1.2
uses: actions-cool/issues-helper@v2
with:
actions: 'add-labels'
issue-number: ${{ github.event.issue.number }}

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

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

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

@ -5,11 +5,11 @@ on:
types: [opened]
jobs:
comment:
pr-check-merge:
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'
steps:
- uses: actions-cool/issues-helper@v2.2.1
- uses: actions-cool/issues-helper@v2
with:
actions: 'create-comment'
issue-number: ${{ github.event.number }}

4
.github/workflows/preview-build.yml

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

4
.github/workflows/preview-start.yml

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

4
.github/workflows/rebase.yml

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

1
.github/workflows/ui.yml

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

Loading…
Cancel
Save