Skip to content

Commit fbaad14

Browse files
fix: dorny/path-filter requires checkout for pushes (#662)
1 parent 7074748 commit fbaad14

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/motoko-counter-example.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ jobs:
1717
outputs:
1818
sources: ${{ steps.filter.outputs.sources }}
1919
steps:
20-
# For pull requests it's not necessary to checkout the code
20+
- uses: actions/checkout@v4
21+
if: github.event_name == 'push'
2122
- uses: dorny/paths-filter@v3
2223
id: filter
2324
with:
@@ -29,7 +30,7 @@ jobs:
2930
- .github/workflows/motoko-counter-example.yaml
3031
motoko-counter-example-darwin:
3132
needs: changes
32-
if: ${{ needs.changes.outputs.sources == 'true' }}
33+
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
3334
runs-on: macos-12
3435
steps:
3536
- uses: actions/checkout@v1
@@ -43,7 +44,7 @@ jobs:
4344
popd
4445
motoko-counter-example-linux:
4546
needs: changes
46-
if: ${{ needs.changes.outputs.sources == 'true' }}
47+
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
4748
runs-on: ubuntu-20.04
4849
steps:
4950
- uses: actions/checkout@v1

0 commit comments

Comments
 (0)