ci(blocked_prs): fix blocking_data refrences, add synchronize and
reopend events Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
8
.github/workflows/blocked_prs.yml
vendored
8
.github/workflows/blocked_prs.yml
vendored
@@ -4,7 +4,9 @@ on:
|
||||
pull_request_target:
|
||||
types:
|
||||
- opened
|
||||
- reopened
|
||||
- edited
|
||||
- synchronize
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
pr_id:
|
||||
@@ -151,7 +153,7 @@ jobs:
|
||||
done < <(jq -c '.blocking[]' <<< "$BLOCKING_PRS") | jq -c -s
|
||||
)
|
||||
echo "data=$BLOCKED_PR_DATA" >> "$GITHUB_OUTPUT"
|
||||
echo "all_merged=$(jq -r 'all(.[].merged; .)' <<< "$BLOCKED_PR_DATA")"
|
||||
echo "all_merged=$(jq -r 'all(.[].merged; .)' <<< "$BLOCKED_PR_DATA")" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Apply Blocked Label if Missing
|
||||
id: label_blocked
|
||||
@@ -186,7 +188,7 @@ jobs:
|
||||
continue-on-error: true
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
BLOCKING_DATA: ${{ steps.blocking_data.outputs.state }}
|
||||
BLOCKING_DATA: ${{ steps.blocking_data.outputs.data }}
|
||||
run: |
|
||||
# label pr dependencies with 'blocking' if not already
|
||||
while read -r pr_data ; do
|
||||
@@ -207,7 +209,7 @@ jobs:
|
||||
continue-on-error: true
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
BLOCKING_DATA: ${{ steps.blocking_data.outputs.state }}
|
||||
BLOCKING_DATA: ${{ steps.blocking_data.outputs.data }}
|
||||
run: |
|
||||
pr_head_sha=$(jq -r '.prHeadSha' <<< "$JOB_DATA")
|
||||
# create commit Status, overwrites previous identical context
|
||||
|
||||
Reference in New Issue
Block a user