Skip to content

Commit

Permalink
chore: add pr label status action
Browse files Browse the repository at this point in the history
  • Loading branch information
sunshinesmilelk authored and BroKun committed Nov 18, 2024
1 parent 0312359 commit 65b5380
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/pr-label-status-dummy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: 🏷️ Label(Status) Dummy
on:
pull_request_review:
types: [submitted, dismissed]
jobs:
dummy:
runs-on: ubuntu-latest
steps:
- run: echo "this is a dummy workflow that triggers a workflow_run; it's necessary because otherwise the repo secrets will not be in scope for externally forked pull requests"
15 changes: 15 additions & 0 deletions .github/workflows/pr-label-status.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: 🏷️ Label(Status)
on:
pull_request_target:
types: [opened, closed, edited, reopened, synchronize, ready_for_review]
workflow_run:
workflows: ['🏷️ Label(Status) Dummy'] # the workflow in step 1
types: [requested]
jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: wow-actions/pr-triage@v1
with:
GITHUB_TOKEN: ${{ env.BOT_TOKEN }}
WORKFLOW_ID: ${{ github.event.workflow_run.id }}

0 comments on commit 65b5380

Please sign in to comment.