1
0
mirror of https://github.com/simple-icons/simple-icons.git synced 2024-11-26 01:00:27 +02:00

Synchronize 'add-labels' and 'auto-assign-to-project' workflows (#6607)

This commit is contained in:
Álvaro Mondéjar 2021-09-27 18:02:06 +02:00 committed by GitHub
parent e881930b79
commit 68a3b70b37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 18 deletions

View File

@ -1,19 +1,26 @@
name: Auto Assign to Project(s)
name: Add Pull Request Labels and Assign to Project
on:
pull_request_target:
types: [opened, labeled]
env:
MY_GITHUB_TOKEN: ${{ secrets.AUTO_ASSIGN_WORKFLOW_TOKEN }}
types: [opened]
jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: ericcornelissen/labeler@label-based-on-status
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
assign-to-project:
runs-on: ubuntu-latest
name: Assign to Project
needs: triage
env:
MY_GITHUB_TOKEN: ${{ secrets.AUTO_ASSIGN_WORKFLOW_TOKEN }}
steps:
- name: Assign pull requests to "Unprioritised"
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:
project: https://github.com/orgs/simple-icons/projects/2
column_name: Unprioritised

View File

@ -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 }}