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:
|
pull_request_target:
|
||||||
types:
|
types:
|
||||||
- opened
|
- opened
|
||||||
|
- reopened
|
||||||
- edited
|
- edited
|
||||||
|
- synchronize
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
pr_id:
|
pr_id:
|
||||||
@@ -151,7 +153,7 @@ jobs:
|
|||||||
done < <(jq -c '.blocking[]' <<< "$BLOCKING_PRS") | jq -c -s
|
done < <(jq -c '.blocking[]' <<< "$BLOCKING_PRS") | jq -c -s
|
||||||
)
|
)
|
||||||
echo "data=$BLOCKED_PR_DATA" >> "$GITHUB_OUTPUT"
|
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
|
- name: Apply Blocked Label if Missing
|
||||||
id: label_blocked
|
id: label_blocked
|
||||||
@@ -186,7 +188,7 @@ jobs:
|
|||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
BLOCKING_DATA: ${{ steps.blocking_data.outputs.state }}
|
BLOCKING_DATA: ${{ steps.blocking_data.outputs.data }}
|
||||||
run: |
|
run: |
|
||||||
# label pr dependencies with 'blocking' if not already
|
# label pr dependencies with 'blocking' if not already
|
||||||
while read -r pr_data ; do
|
while read -r pr_data ; do
|
||||||
@@ -207,7 +209,7 @@ jobs:
|
|||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
BLOCKING_DATA: ${{ steps.blocking_data.outputs.state }}
|
BLOCKING_DATA: ${{ steps.blocking_data.outputs.data }}
|
||||||
run: |
|
run: |
|
||||||
pr_head_sha=$(jq -r '.prHeadSha' <<< "$JOB_DATA")
|
pr_head_sha=$(jq -r '.prHeadSha' <<< "$JOB_DATA")
|
||||||
# create commit Status, overwrites previous identical context
|
# create commit Status, overwrites previous identical context
|
||||||
|
|||||||
Reference in New Issue
Block a user