Commit 838fd38 Johannes Schneider
committed
1 parent 912db4d commit 838fd38 Copy full SHA for 838fd38
File tree 1 file changed +9
-0
lines changed
.github/actions/pr-is-mergeable
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,10 @@ inputs:
17
17
description : " The GitHub access token (with PR read permissions) to access the PR"
18
18
required : false
19
19
default : ${{ github.token }}
20
+ excluded-check-runs :
21
+ description : " A comma-separated list of workflow names that are excluded from the Check Runs check"
22
+ required : false
23
+ default : " ${{ github.workflow }}"
20
24
21
25
outputs :
22
26
pr-number :
59
63
60
64
# check runs are things like our CI pipeline
61
65
FAILED_CHECK_RUNS=$(jq -r '.[] | select(.__typename == "CheckRun" and .conclusion != "SUCCESS" and .conclusion != "NEUTRAL")' <<< "$PR_ROLLUP")
66
+ IFS=',' read -ra EXCLUDED_WORKFLOWS <<< "${{ inputs.excluded-check-runs }}"
67
+ for EXCLUDED_WORKFLOW in "${EXCLUDED_WORKFLOWS[@]}"; do
68
+ FAILED_CHECK_RUNS=$(jq -r '.[] | select(.name != "$EXCLUDED_WORKFLOW")' <<< "$FAILED_CHECK_RUNS")
69
+ done
70
+
62
71
if [[ -n "$FAILED_CHECK_RUNS" ]]; then
63
72
echo "PR #$PR_NUMBER (in ${{ inputs.repo }}) contains failed check runs: "
64
73
echo "$FAILED_CHECK_RUNS"
You can’t perform that action at this time.
0 commit comments