1
0
mirror of https://github.com/simple-icons/simple-icons.git synced 2025-01-05 01:20:39 +02:00

Update Workflows to reflect new Labels (#10026)

This commit is contained in:
Adam Rusted 2023-12-05 12:50:14 +00:00 committed by GitHub
parent 31f63b171d
commit 909e1ca877
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 18 additions and 10 deletions

9
.github/labeler.yml vendored
View File

@ -1,6 +1,13 @@
new icon:
- any: [icons/*.svg]
status: added
icon outdated:
update icon/data:
- any: [icons/*.svg]
status: modified
docs:
- any: ['*.md']
status: modified
meta:
- any: ['.github/*', 'scripts/*', 'tests/*', '*']
- all: ['!*.md', '!icons/*.svg', '!_data/*', '!package.json']
status: modified

View File

@ -54,9 +54,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- id: priority-1
name: Assign `icon outdated` pull requests to "Priority 1"
name: Assign `update icon/data` pull requests to "Priority 1"
uses: srggrs/assign-one-project-github-action@1.3.1
if: contains(steps.get-labels.outputs.labels, 'icon outdated')
if: contains(steps.get-labels.outputs.labels, 'update icon/data')
with:
project: https://github.com/orgs/simple-icons/projects/2
column_name: Priority 1

View File

@ -10,8 +10,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- id: match-title
name: Match title
- id: match-java
name: Match Java
# if the title contains the word Java (case insensitive)
# we make sure that this word is the end of the string or is followed by a space character (ex. we do not want to match javascript)
# we make sure that this word is the beginning of the string or is preceded by a space character (ex. we do not want to match foojava)
@ -33,7 +33,7 @@ jobs:
# - we close the issue
- name: Close the issue
if: |
steps.match-title.outputs.match == 'true' &&
steps.match-java.outputs.match == 'true' &&
contains(steps.get-labels.outputs.labels, 'new icon')
uses: actions/github-script@v6
with:

View File

@ -10,7 +10,7 @@ jobs:
- uses: wow-actions/potential-duplicates@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
label: potential duplicate
label: duplicate
exclude: |
adding
add

View File

@ -17,13 +17,14 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
labels: |
assessing
awaiting reply
changes requested
duplicate
in discussion
invalid
out of scope
pending
permission required
won't add
remove-closed-pr-labels:
name: Remove closed pull request labels
@ -36,6 +37,7 @@ jobs:
labels: |
in discussion
pending
assessing
remove-closed-issue-labels:
name: Remove closed issue labels
if: github.event.issue.state == 'closed'
@ -47,5 +49,4 @@ jobs:
labels: |
in discussion
pending
tracking
help wanted
assessing