Skip to content

Commit b438d1a

Browse files
committed
chore(ci): simplify remove label action
1 parent 118d2fe commit b438d1a

File tree

9 files changed

+29
-33039
lines changed

9 files changed

+29
-33039
lines changed

.gitattributes

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +0,0 @@
1-
# Skip git diff or merge
2-
/dev-packages/ga-remove-label/dist/index.js binary
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: 'Remove label'
2+
description: 'Remove a label'
3+
4+
inputs:
5+
label:
6+
description: Label to remove
7+
required: true
8+
9+
runs:
10+
using: composite
11+
steps:
12+
- uses: actions/github-script@v6
13+
with:
14+
script: |
15+
github.rest.issues.removeLabel({
16+
issue_number: context.issue.number,
17+
owner: context.repo.owner,
18+
repo: context.repo.repo,
19+
name: '${{ inputs.label }}'
20+
})

.github/workflows/chromatic.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
- v*
99
- '!v*-alpha.*' # ignore alpha versions
1010

11+
concurrency:
12+
group: chromatic-${{ github.head_ref || github.run_id }}
13+
cancel-in-progress: true
14+
1115
jobs:
1216
dependencies:
1317
name: "dependencies"
@@ -50,8 +54,6 @@ jobs:
5054

5155
- if: "contains(github.event.pull_request.labels.*.name, 'need: deploy-chromatic')"
5256
name: "Remove label"
53-
uses: ./dev-packages/ga-remove-label
54-
env:
55-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56-
LABEL: "need: deploy-chromatic"
57-
57+
uses: ./.github/actions/remove-label
58+
with:
59+
label: "need: deploy-chromatic"

dev-packages/ga-remove-label/.gitignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

dev-packages/ga-remove-label/action.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)