Skip to content
Merged
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
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -558,3 +558,37 @@ jobs:
repo: context.repo.repo,
body: body
});

merge-gate:
name: merge gate
runs-on: ubuntu-latest
needs:
[
placeholders,
lint,
dashboards,
serviceaccount-bindings,
kyverno,
fork-safety,
helm-render,
policy-admission,
appsets,
appset-render,
secrets,
validate,
pr-summary,
]
# always() is load-bearing: without it a failed dependency SKIPS this job,
# and GitHub counts a skipped check as passing for branch protection, so the
# gate would report green exactly when something broke.
#
# Restricted to pull_request because the gate treats a skipped dependency as
# a failure, and a job carrying `if: github.event_name == 'pull_request'` is
# legitimately skipped on a push to main. The gate exists to gate merges, and
# merges come from pull requests; on push it is skipped and gates nothing.
if: always() && github.event_name == 'pull_request'
steps:
- uses: nanohype/.github/actions/merge-gate@6ec6c5b3e6c4a8b15e12da4afd7ac4870a630092 # main
with:
needs: ${{ toJSON(needs) }}
gate-job-id: merge-gate