Skip to content

Commit

Permalink
that's what issue comment means!
Browse files Browse the repository at this point in the history
Signed-off-by: pengyu <[email protected]>
  • Loading branch information
py023 committed Feb 18, 2024
1 parent 14f0fd5 commit d03336f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/pr-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@
name: Auto trigger PR action

on:
issue_comment:
types: [created, edited]
pull_request_review_comment:
types: [created, edited]
pull_request_target:
types: [opened, synchronize]

env:
PULL_REQUEST_NUM_OFFICIAL: ${{ github.event.pull_request.number }}
# PULL_REQUEST_NUM_WTF: $(echo "${{ github.event.issue.pull_request.url }}" | awk -F/ '{print $NF}')
PULL_REQUEST_NUM_WTF: $(echo "${{ github.event.issue.pull_request.url }}" | awk -F/ '{print $NF}')

jobs:
print_env:
Expand All @@ -19,4 +21,4 @@ jobs:
run: |
echo trigger time: $(date)
echo "PULL_REQUEST_NUM_OFFICIAL: $PULL_REQUEST_NUM_OFFICIAL"
# echo "PULL_REQUEST_NUM_WTF: $PULL_REQUEST_NUM_WTF"
echo "PULL_REQUEST_NUM_WTF: $PULL_REQUEST_NUM_WTF"

0 comments on commit d03336f

Please sign in to comment.