Skip to content

Commit

Permalink
fix: dorny/path-filter requires checkout for pushes (#662)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericswanson-dfinity authored Jan 29, 2024
1 parent 7074748 commit fbaad14
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/motoko-counter-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ jobs:
outputs:
sources: ${{ steps.filter.outputs.sources }}
steps:
# For pull requests it's not necessary to checkout the code
- uses: actions/checkout@v4
if: github.event_name == 'push'
- uses: dorny/paths-filter@v3
id: filter
with:
Expand All @@ -29,7 +30,7 @@ jobs:
- .github/workflows/motoko-counter-example.yaml
motoko-counter-example-darwin:
needs: changes
if: ${{ needs.changes.outputs.sources == 'true' }}
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
runs-on: macos-12
steps:
- uses: actions/checkout@v1
Expand All @@ -43,7 +44,7 @@ jobs:
popd
motoko-counter-example-linux:
needs: changes
if: ${{ needs.changes.outputs.sources == 'true' }}
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
Expand Down

0 comments on commit fbaad14

Please sign in to comment.