Skip to content
Merged

dev #15

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/merge-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ jobs:
# not success is a hard fail. Timeout fails closed.
for i in $(seq 1 20); do
ok=1
for name in "CodeQL" "Analyze (actions)" "Analyze (python)"; do
for name in "CodeQL" "Analyze (actions)" "Analyze (python)" "policy-ci"; do
c=$(gh api "repos/$GITHUB_REPOSITORY/commits/$HEAD_SHA/check-runs?per_page=100" \
--jq "[.check_runs[] | select(.name == \"$name\")] | sort_by(.started_at) | last | if . == null or .status != \"completed\" then \"none\" else .conclusion // \"none\" end")
echo "attempt $i: $name: $c"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ jobs:
run: |
set -euo pipefail
id="$(gh run list --repo "$GITHUB_REPOSITORY" --workflow build-environment-image.yml \
--commit "$GITHUB_SHA" --status success --event push \
--json databaseId,headBranch \
--jq '[.[] | select(.headBranch == "main")] | .[0].databaseId // empty')"
--commit "$GITHUB_SHA" --status success \
--json databaseId,headBranch,event \
--jq '[.[] | select(.headBranch == "main" and (.event == "push" or .event == "workflow_dispatch"))] | .[0].databaseId // empty')"
if [ -z "$id" ]; then
echo "::error::no successful build-environment-image run on main for $GITHUB_SHA. Tag the commit that built the image."
exit 1
Expand Down
Loading