Skip to content

Commit

Permalink
Do not run regress workflows on benign changes
Browse files Browse the repository at this point in the history
If only documentation is changed, the full regression check workflow
will still be executed, so this commit will instead skip running the
regression workflows if there are only changes to files that will not
affect the success of the workflow.
  • Loading branch information
mkindahl committed Jan 9, 2023
1 parent 7a6101a commit ef3f27f
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/linux-32bit-build-and-test.yaml
Expand Up @@ -4,7 +4,19 @@ on:
branches:
- main
- prerelease_test
paths-ignore:
- '**.md'
- LICENSE
- NOTICE
- 'bootstrap*'
- '.??*'
pull_request:
paths-ignore:
- '**.md'
- LICENSE
- NOTICE
- 'bootstrap*'
- '.??*'
jobs:
config:
runs-on: ubuntu-latest
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/linux-build-and-test.yaml
Expand Up @@ -11,7 +11,19 @@ on:
branches:
- main
- prerelease_test
paths-ignore:
- '**.md'
- LICENSE
- NOTICE
- 'bootstrap*'
- '.??*'
pull_request:
paths-ignore:
- '**.md'
- LICENSE
- NOTICE
- 'bootstrap*'
- '.??*'
jobs:
matrixbuilder:
runs-on: ubuntu-latest
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/required-workflows.yaml
@@ -0,0 +1,32 @@
# If a required workflow is ignored, the PR will not be accepted, so
# we create an alternative workflow that will succeed in the cases
# where a workflow does not run.
name: Required workflows that are ignored
on:
push:
branches:
- prerelease_test
paths:
- '**.md'
- LICENSE
- NOTICE
- 'bootstrap*'
- '.??*'
pull_request:
paths:
- '**.md'
- LICENSE
- NOTICE
- 'bootstrap*'
- '.??*'
jobs:
regress_linux_32bit:
runs-on: ubuntu-latest
steps:
- run: |
echo "No build required"
regress:
runs-on: ubuntu-latest
steps:
- run: |
echo "No build required"
2 changes: 2 additions & 0 deletions .github/workflows/shellcheck.yaml
Expand Up @@ -6,6 +6,8 @@ on:
branches:
- main
- prerelease_test
paths:
- '**.sh'
jobs:
shellcheck:
name: Shellcheck
Expand Down

0 comments on commit ef3f27f

Please sign in to comment.