Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add enforce workflow to wait for PR status checks #1251

Merged
merged 1 commit into from
May 5, 2024
Merged
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/mkdocs-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

# Install Python
- name: Setup Python
uses: actions/setup-python@v5
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: 3.x

Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/summary.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: summary
on:
pull_request:
jobs:
enforce:
uses: ./.github/workflows/wait-for-status-checks.yaml
permissions:
checks: read
16 changes: 16 additions & 0 deletions .github/workflows/wait-for-status-checks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: wait-for-status-checks
on:
workflow_call:
jobs:
status-checks:
runs-on: [self-hosted, Linux, X64]
permissions:
checks: read
steps:
- name: GitHub Checks
uses: poseidon/wait-for-status-checks@5fc55bcf5e80b8beab24f45ec6ed96b133d89e42 # v0.4.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
# wait-for-status-checks ignores it's own check name, but it does
# not know the full name when used inside a reusable workflow
ignore: "enforce / status-checks"