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 21
21
check_changes :
22
22
runs-on : ubuntu-latest
23
23
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 }}
35
25
steps :
36
26
- uses : actions/checkout@v4
37
27
with :
@@ -47,14 +37,19 @@ jobs:
47
37
- 'pytensor/_version.py'
48
38
- 'pytensor/scan_perform.pyx'
49
39
- '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
56
42
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
58
53
59
54
# The job to build precompiled pypi wheels.
60
55
make_sdist :
You can’t perform that action at this time.
0 commit comments