Skip to content

Commit

Permalink
ci: avoid running workflows twice for pull requests (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospereira authored Apr 9, 2024
1 parent 3a9d2b4 commit 943b854
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 22 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/graalvm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ on:
- 'docs/**'
- 'mkdocs.yml'
push:
paths-ignore:
- 'docs/**'
- 'mkdocs.yml'
branches:
- main

jobs:
build:
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/gradle-wrapper-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ name: Validate Gradle Wrapper
# a workflow to validate the docs.
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onpushpull_requestpull_request_targetpathspaths-ignore
on:
pull_request:
paths-ignore:
- 'docs/**'
- 'mkdocs.yml'
push:
paths-ignore:
- 'docs/**'
- 'mkdocs.yml'
pull_request:
paths-ignore:
- 'docs/**'
- 'mkdocs.yml'
push:
branches:
- main

jobs:
validation:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ on:
- 'docs/**'
- 'mkdocs.yml'
push:
paths-ignore:
- 'docs/**'
- 'mkdocs.yml'
branches:
- main

jobs:
build:
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/validate-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ name: Validate docs
# Only run workflow if the docs are changing.
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onpushpull_requestpull_request_targetpathspaths-ignore
on:
pull_request:
paths:
- 'mkdocs.yml'
- 'docs/**'
push:
paths:
- 'mkdocs.yml'
- 'docs/**'
pull_request:
paths:
- 'mkdocs.yml'
- 'docs/**'
push:
branches:
- main

jobs:
validate:
Expand Down

0 comments on commit 943b854

Please sign in to comment.