File tree Expand file tree Collapse file tree 1 file changed +13
-18
lines changed
Expand file tree Collapse file tree 1 file changed +13
-18
lines changed Original file line number Diff line number Diff line change 2121 check_changes :
2222 runs-on : ubuntu-latest
2323 outputs :
24- should_run : |
25- if [[ "${{ github.event_name == 'release' ||
26- (
27- github.ref == 'refs/heads/main' ||
28- github.event_name == 'pull_request'
29- ) && steps.filter.outputs.any_changed == 'true'
30- }}" == "true" ]]; then
31- echo "true"
32- else
33- echo "false"
34- fi
24+ should_run : ${{ steps.set_should_run.outputs.should_run }}
3525 steps :
3626 - uses : actions/checkout@v4
3727 with :
@@ -47,14 +37,19 @@ jobs:
4737 - 'pytensor/_version.py'
4838 - 'pytensor/scan_perform.pyx'
4939 - 'pytensor/scan_perform_ext.py'
50-
51- print_check_changes_output :
52- runs-on : ubuntu-latest
53- needs : check_changes
54- steps :
55- - name : Print should_run
40+ - name : Set should_run output
41+ id : set_should_run
5642 run : |
57- echo "should_run: ${{ needs.check_changes.outputs.should_run }}"
43+ if [[ "${{ github.event_name == 'release' ||
44+ (
45+ github.ref == 'refs/heads/main' ||
46+ github.event_name == 'pull_request'
47+ ) && steps.filter.outputs.any_changed == 'true'
48+ }}" == "true" ]]; then
49+ echo "should_run=true" >> $GITHUB_OUTPUT
50+ else
51+ echo "should_run=false" >> $GITHUB_OUTPUT
52+ fi
5853
5954 # The job to build precompiled pypi wheels.
6055 make_sdist :
You can’t perform that action at this time.
0 commit comments