1
0
mirror of synced 2025-12-30 12:02:01 -05:00

Fix pull_request_target if_merged example

Within the workflow, the event object is still `github.event.pull_request`, so the `merged` key is at `github.event.pull_request.merged`. There _is not_ a `github.event.pull_request_target` object. This is also reflected in the table for this section in "Webhook event payload".
This commit is contained in:
Kyle Laker
2022-04-01 15:45:22 -04:00
committed by GitHub
parent ce1cdf5c63
commit ef41ed0303

View File

@@ -899,7 +899,7 @@ on:
jobs:
if_merged:
if: github.event.pull_request_target.merged == true
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- run: |