Skip to content

Commit

Permalink
Remove the stuff that only runs workflows when certain files are chan…
Browse files Browse the repository at this point in the history
…ged - it's not working as nice as it could

Signed-off-by: Adam Warner <[email protected]>
  • Loading branch information
PromoFaux committed Aug 22, 2022
1 parent f2d42a5 commit f2a84ce
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/test-and-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,7 @@ on:
types: [published]

jobs:
# JOB to run change detection
changes:
runs-on: ubuntu-latest
# Set job outputs to values from filter step
outputs:
requires-build: ${{ steps.filter.outputs.requires-build }}
steps:
-
name: Checkout Repo
uses: actions/checkout@v3
-
name: Check which files have been touched
uses: dorny/paths-filter@v2
id: filter
with:
filters: |
requires-build:
- 'src/**'
- 'test/**'
- '.github/workflows/test-and-build.yaml'
- 'build-and-test.sh'
test:
needs: changes
# Only run this step if certain files have been touched, or if it is a scheduled build.
if: ${{ needs.changes.outputs.requires-build == 'true' || github.event_name == 'schedule' }}
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
Expand Down

0 comments on commit f2a84ce

Please sign in to comment.