[action] move oss triage wofkow to common workflows

This commit is contained in:
max furman 2022-10-18 11:57:47 -07:00
parent 361e2b2907
commit 91775f6d67
No known key found for this signature in database
2 changed files with 5 additions and 22 deletions

4
.github/labeler.yml vendored
View file

@ -1,4 +0,0 @@
needs triage:
- '**' # index.php | src/main.php
- '.*' # .gitignore
- '.*/**' # .github/workflows/label.yml

View file

@ -4,26 +4,13 @@ on:
issues: issues:
types: types:
- opened - opened
- reopened
pull_request_target: pull_request_target:
types: types:
- opened - opened
- reopened
jobs: jobs:
triage:
label: uses: smallstep/workflows/.github/workflows/triage.yml@main
name: Label PR secrets: inherit
runs-on: ubuntu-latest
if: github.event_name == 'pull_request_target'
steps:
- uses: actions/labeler@v3.0.2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
add-to-project:
name: Add to Triage Project
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@v0.3.0
with:
project-url: https://github.com/orgs/smallstep/projects/94
github-token: ${{ secrets.TRIAGE_PAT }}