File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,27 @@ concurrency:
31
31
cancel-in-progress : true
32
32
33
33
jobs :
34
+
35
+ check-needs-run :
36
+ outputs :
37
+ any-changes : ${{ steps.changes.outputs.src }}
38
+ permissions :
39
+ pull-requests : read
40
+ contents : read
41
+ steps :
42
+ - name : Checkout
43
+ uses : actions/checkout@v4
44
+ - uses : dorny/paths-filter@v3
45
+ id : changes
46
+ with :
47
+ base : main
48
+ filters : |
49
+ src:
50
+ - 'src/**'
51
+ - 'docs/**'
52
+ - '.github/workflows/bevy_mod_scripting.yml'
53
+
54
+
34
55
generate-job-matrix :
35
56
runs-on : ubuntu-latest
36
57
# container: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
@@ -49,13 +70,14 @@ jobs:
49
70
echo "matrix=$(cat matrix-one-line.json)" >> $GITHUB_OUTPUT
50
71
51
72
check :
73
+ needs : [check-needs-run]
52
74
permissions :
53
75
pull-requests : write
54
76
contents : write
55
77
issues : write
56
78
name : Check - ${{ matrix.run_args.name }}
57
79
runs-on : ${{ matrix.run_args.os }}
58
- # container : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
80
+ if : ${{ needs.check-needs-run.outputs.any-changes == 'true' }}
59
81
needs :
60
82
- generate-job-matrix
61
83
strategy :
You can’t perform that action at this time.
0 commit comments