mirror of
https://github.com/Mibew/simple-icons.git
synced 2025-01-31 14:24:45 +03:00
Synchronize 'add-labels' and 'auto-assign-to-project' workflows (#6607)
This commit is contained in:
parent
e881930b79
commit
68a3b70b37
@ -1,19 +1,26 @@
|
|||||||
name: Auto Assign to Project(s)
|
name: Add Pull Request Labels and Assign to Project
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request_target:
|
pull_request_target:
|
||||||
types: [opened, labeled]
|
types: [opened]
|
||||||
env:
|
|
||||||
MY_GITHUB_TOKEN: ${{ secrets.AUTO_ASSIGN_WORKFLOW_TOKEN }}
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
triage:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: ericcornelissen/labeler@label-based-on-status
|
||||||
|
with:
|
||||||
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
assign-to-project:
|
assign-to-project:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Assign to Project
|
name: Assign to Project
|
||||||
|
needs: triage
|
||||||
|
env:
|
||||||
|
MY_GITHUB_TOKEN: ${{ secrets.AUTO_ASSIGN_WORKFLOW_TOKEN }}
|
||||||
steps:
|
steps:
|
||||||
- name: Assign pull requests to "Unprioritised"
|
- name: Assign pull requests to "Unprioritised"
|
||||||
uses: srggrs/assign-one-project-github-action@1.2.1
|
uses: srggrs/assign-one-project-github-action@1.2.1
|
||||||
if: github.event.action == 'opened'
|
if: !contains(github.event.pull_request.labels.*.name, 'icon outdated')
|
||||||
with:
|
with:
|
||||||
project: https://github.com/orgs/simple-icons/projects/2
|
project: https://github.com/orgs/simple-icons/projects/2
|
||||||
column_name: Unprioritised
|
column_name: Unprioritised
|
12
.github/workflows/add-labels.yml
vendored
12
.github/workflows/add-labels.yml
vendored
@ -1,12 +0,0 @@
|
|||||||
name: Add Pull Request Labels
|
|
||||||
on:
|
|
||||||
pull_request_target:
|
|
||||||
types: [opened]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
triage:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: ericcornelissen/labeler@label-based-on-status
|
|
||||||
with:
|
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
Loading…
Reference in New Issue
Block a user