Skip to content

Commit

Permalink
chore: Update ci.yml in chars
Browse files Browse the repository at this point in the history
  • Loading branch information
antifuchs committed Aug 8, 2023
1 parent 168b555 commit 71e1c3a
Showing 1 changed file with 24 additions and 9 deletions.
33 changes: 24 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,23 @@
# readable, but please don't edit it.

"jobs":
"any_ci":
"can_enqueue":
"if": "always() && github.event_name != 'merge_group'"
"needs":
- "ci_rust"
"permissions":
"actions": "read"
"runs-on": "ubuntu-latest"
"steps":
- "name": "Immediate success for improved visibility on github merge queue"
"run": "true"
"ci_rust":
"secrets": "inherit"
"uses": "./.github/workflows/ci_rust.yml"
"overall_ci":
"if": "always()"
- "env":
"NEEDS_JSON": "${{toJSON(needs)}}"
"name": "Transform outcomes"
"run": |
echo "ALL_SUCCESS=$(echo "$NEEDS_JSON" | jq '. | to_entries | map([.value.result == "success", .value.result == "skipped"] | any) | all')" >>$GITHUB_ENV
- "name": "check"
"run": "[ $ALL_SUCCESS == true ]"
"can_merge":
"if": "always() && github.event_name == 'merge_group'"
"needs":
- "ci_rust"
"permissions":
Expand All @@ -22,9 +29,17 @@
"NEEDS_JSON": "${{toJSON(needs)}}"
"name": "Transform outcomes"
"run": |
echo "ALL_SUCCESS=$(echo "$NEEDS_JSON" | jq '. | to_entries | map(.value.result == "success") | all')" >>$GITHUB_ENV
echo "ALL_SUCCESS=$(echo "$NEEDS_JSON" | jq '. | to_entries | map([.value.result == "success", .value.result == "skipped"] | any) | all')" >>$GITHUB_ENV
- "name": "check"
"run": "[ $ALL_SUCCESS == true ]"
"can_see_status":
"runs-on": "ubuntu-latest"
"steps":
- "name": "Immediate success for improved visibility on github merge queue"
"run": "true"
"ci_rust":
"secrets": "inherit"
"uses": "./.github/workflows/ci_rust.yml"
"name": "CI"
"on":
"merge_group": {}
Expand Down

0 comments on commit 71e1c3a

Please sign in to comment.