Skip to content

Commit

Permalink
ci: Fix conditional required workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry committed Nov 24, 2023
1 parent 207ced1 commit 5786839
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
1 change: 0 additions & 1 deletion .github/workflows/benchmark.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Benchmark Tests

# To be aware it need to be the counter-part of benchmark-empty.yaml.
on:
pull_request: ~

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# Fallback workflow to be able to have the branch protection enabled at all times.
name: Empty Benchmark Tests
name: Null Docs

on:
# To be aware it need to be the counter-part of benchmark.yaml.
push:
branches: [ main ]
# To be aware it need to be the counter-part of docs.yaml.
pull_request:
paths-ignore:
- doc/**
- mkdocs.yaml
- .github/workflows/docs.yaml

# See https://stackoverflow.com/a/72408109
concurrency:
Expand All @@ -16,7 +19,7 @@ jobs:
# the protected branch rules as opposed to the tests one above which
# may change regularly.
validate-tests:
name: Benchmark tests status
name: Docs status
runs-on: ubuntu-latest
steps:
- name: Successful run
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: GitHub-Pages
name: Docs

on:
push:
Expand All @@ -7,12 +7,13 @@ on:
paths:
- doc/**
- mkdocs.yaml
- .github/workflows/gh-pages.yaml
- .github/workflows/docs.yaml
# To be aware it need to be the counter-part of docs-empty.yaml.
pull_request:
paths:
- doc/**
- mkdocs.yaml
- .github/workflows/gh-pages.yaml
- .github/workflows/docs.yaml

# See https://stackoverflow.com/a/72408109
concurrency:
Expand Down

0 comments on commit 5786839

Please sign in to comment.