-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
github-actions: support for only docs (#33)
- Loading branch information
Showing
4 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# This workflow sets the 'test-windows' and 'builds' status check to success in case it's a docs only PR and ci.yml is not triggered | ||
# https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks | ||
name: Pull Request Validation # The name must be the same as in ci.yml | ||
|
||
on: | ||
pull_request: | ||
paths-ignore: # This expression needs to match the paths ignored on ci.yml. | ||
- '**' | ||
- '!*.md' | ||
- '!*.asciidoc' | ||
- '!docs/**' | ||
|
||
permissions: | ||
contents: read | ||
|
||
## Concurrency only allowed in the main branch. | ||
## So old builds running for old commits within the same Pull Request are cancelled | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | ||
|
||
jobs: | ||
# dummy steps that allow to bypass those mandatory checks for tests | ||
test-windows: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: 'echo "Not required for docs"' | ||
|
||
# dummy steps that allow to bypass those mandatory checks for tests | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: 'echo "Not required for docs"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# This workflow sets the 'test' status check to success in case it's a docs only PR and e2e.yml is not triggered | ||
# https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks | ||
name: e2e # The name must be the same as in e2e.yml | ||
|
||
on: | ||
pull_request: | ||
paths-ignore: # This expression needs to match the paths ignored on e2e.yml. | ||
- '**' | ||
- '!*.md' | ||
- '!*.asciidoc' | ||
- '!docs/**' | ||
|
||
permissions: | ||
contents: read | ||
|
||
## Concurrency only allowed in the main branch. | ||
## So old builds running for old commits within the same Pull Request are cancelled | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | ||
|
||
jobs: | ||
# dummy steps that allow to bypass those mandatory checks for tests | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: 'echo "Not required for docs"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters