Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Skip export-data on non-code (e.g. docs) PRs (#16387)
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson authored Sep 26, 2023
1 parent ec1c709 commit 06f650f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -499,8 +499,8 @@ jobs:
/logs/**/*.log*
export-data:
if: ${{ !failure() && !cancelled() }} # Allow previous steps to be skipped, but not fail
needs: [linting-done, portdb]
if: ${{ !failure() && !cancelled() && needs.changes.outputs.integration == 'true'}} # Allow previous steps to be skipped, but not fail
needs: [linting-done, portdb, changes]
runs-on: ubuntu-latest
env:
TOP: ${{ github.workspace }}
Expand Down Expand Up @@ -535,7 +535,7 @@ jobs:


portdb:
if: ${{ !failure() && !cancelled() && needs.changes.outputs.linting == 'true' }} # Allow previous steps to be skipped, but not fail
if: ${{ !failure() && !cancelled() && needs.changes.outputs.integration == 'true'}} # Allow previous steps to be skipped, but not fail
needs:
- linting-done
- changes
Expand Down Expand Up @@ -702,6 +702,7 @@ jobs:
trial-olddeps
sytest
portdb
export-data
complement
check-signoff
lint-newsfile
Expand Down
1 change: 1 addition & 0 deletions changelog.d/16387.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Avoid running CI steps when the files they check have not been changed.

0 comments on commit 06f650f

Please sign in to comment.