Skip to content

Commit

Permalink
chore(repo): ignore docs changes in workflows (#411)
Browse files Browse the repository at this point in the history
* chore(repo): ignore docs changes in workflows

* .

* .

* chore(repo): remove workflows from merge_group so they don't trigger every time a PR gets merged to main, add merge-gatekeeper
  • Loading branch information
RogerLamTd authored Nov 22, 2024
1 parent 3432737 commit bd7bf99
Show file tree
Hide file tree
Showing 12 changed files with 37 additions and 10 deletions.
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 }}
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit bd7bf99

Please sign in to comment.