Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
EricWF committed Nov 28, 2023
1 parent f601b38 commit 231943b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/label-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:
types: [submitted, edited, dismissed]

jobs:
dump:
env:
GITHUB_CONTEXT: ${{ toJson(github.event.pull_request) }}
steps:
- run: echo $GITHUB_CONTEXT | jq
approved:
if: github.event.review.state == 'APPROVED'
permissions:
Expand All @@ -18,7 +23,7 @@ jobs:
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo $GITHUB_CONTEXT | jq
- run: gh pr edit "$NUMBER" --add-label "$LABELS"
- run: gh pr edit ${{ github.event.pull_request.html_url }} --add-label "$LABELS"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
Expand Down

0 comments on commit 231943b

Please sign in to comment.