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

chore(repo): ignore docs changes in workflows #411

Merged
merged 5 commits into from
Nov 22, 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
1 change: 0 additions & 1 deletion .github/workflows/ci-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ on:
- "lib/**"
- "script/**"
- "!docs/**"
merge_group:

env:
CARGO_TERM_COLOR: always
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: CI - Lint
on:
pull_request:
types: [opened, reopened, edited, synchronize]
merge_group:
paths:
- "!docs/**"

env:
CARGO_TERM_COLOR: always
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ci-provers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ on:
paths:
- "pipelines/**"
- "harness/**"
- "!docs/**"
pull_request:
paths:
- "pipelines/**"
- "harness/**"
merge_group:
- "!docs/**"

env:
CARGO_TERM_COLOR: always
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ci-risc0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ on:
branches: ["main"]
paths:
- "provers/risc0/**"
- "!docs/**"
pull_request:
paths:
- "provers/risc0/**"
merge_group:
- "!docs/**"

jobs:
build-test-risc0:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ci-sgx-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ on:
branches: ["main"]
paths:
- "provers/sgx/**"
- "!docs/**"
pull_request:
paths:
- "provers/sgx/**"
merge_group:
- "!docs/**"

jobs:
build-test-sgx:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ci-sgx-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ on:
branches: ["main"]
paths:
- "docker/**"
- "!docs/**"
pull_request:
paths:
- "docker/**"
merge_group:
- "!docs/**"

jobs:
build-test-sgx-with-docker:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ci-sp1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ on:
branches: ["main"]
paths:
- "provers/sp1/**"
- "!docs/**"
pull_request:
paths:
- "provers/sp1/**"
merge_group:
- "!docs/**"

jobs:
build-test-sp1:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/openapi-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ name: OpenAPI
on:
push:
branches: ["main"]
paths-ignore:
- "docs/**"
paths:
- "!docs/**"
pull_request:
merge_group:
paths:
- "!docs/**"

permissions:
contents: read
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/repo--merge-gatekeeper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Merge Gatekeeper

on:
pull_request:
branches:
- main
merge_group: # Trigger in merge queue to pass the required status check

jobs:
merge-gatekeeper:
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.draft == false }}
runs-on: [arc-runner-set]
permissions:
checks: read
statuses: read
steps:
- name: Run Merge Gatekeeper
uses: upsidr/merge-gatekeeper@v1
with:
timeout: 1200
token: ${{ secrets.GITHUB_TOKEN }}