Skip to content

chore(ckan/dependencies): update ghcr.io/teutonet/oci-images/solr-ckan docker tag to v1.0.29 #8772

chore(ckan/dependencies): update ghcr.io/teutonet/oci-images/solr-ckan docker tag to v1.0.29

chore(ckan/dependencies): update ghcr.io/teutonet/oci-images/solr-ckan docker tag to v1.0.29 #8772

name: Wait for checks
on:
merge_group:
types:
- checks_requested
pull_request:
types:
- opened
- edited
- reopened
- synchronize
jobs:
wait-for-checks:
runs-on: self-hosted
permissions:
checks: read
steps:
- env:
GH_TOKEN: ${{ secrets.ACTIONS_BOT_TOKEN }}
CHANGE_SHA: ${{ github.event.pull_request.head.sha || github.event.merge_group.head_sha }}
IGNORED_JOBS: generateDiffCommentBody,postDiffComment
CURRENT_JOB: ${{ github.job }}
timeout-minutes: 60
run: |
[[ "$RUNNER_DEBUG" == 1 ]] && set -x
set -e
set -o pipefail
# must work three times, (sometimes) the github API drops jobs that are currently restarting
tries=3; while (( --tries >= 0 )); do
while unfinished_jobs="$(gh api --paginate "/repos/${GITHUB_REPOSITORY}/commits/${CHANGE_SHA}/check-runs" | jq --arg ignored "$IGNORED_JOBS,$CURRENT_JOB" -e '.check_runs | map(select(([.conclusion] | inside(["success","skipped","cancelled"]) | not) and ([.name] | inside($ignored | split(",")) | not))) | map("\(.name) (\(.conclusion // .status))") | if length == 0 then halt_error(1) end')"; do
echo "The following jobs are not (successfully) finished yet:" >&2
echo "$unfinished_jobs" >&2
sleep 5
done
sleep 5
done