File tree Expand file tree Collapse file tree 1 file changed +4
-16
lines changed Expand file tree Collapse file tree 1 file changed +4
-16
lines changed Original file line number Diff line number Diff line change 11
11
types : [ labeled ]
12
12
13
13
jobs :
14
- set-output :
15
- runs-on : ubuntu-latest
16
- outputs :
17
- condition : ${{ steps.set-condition.outputs.condition }}
18
- steps :
19
- - name : Set Event Condition
20
- id : set-condition
21
- run : |
22
- if [ "${{ github.event_name }}" = "push" ] || [ "${{ github.event_name }}" = "workflow_dispatch" ] || [ "${{ github.event_name }}" = "schedule" ] || [ "${{ inputs.parent-event-name }}" = "release" ] || [ "${{ github.event.label.name }}" = "run-testacc-migration" ]; then
23
- echo "::set-output name=condition::true"
24
- else
25
- echo "::set-output name=condition::false"
26
- fi
27
14
change-detection :
28
15
runs-on : ubuntu-latest
29
16
permissions :
32
19
outputs :
33
20
project : ${{ steps.filter.outputs.project }}
34
21
config : ${{ steps.filter.outputs.config }}
22
+ shouldTriggerResourceTest : ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || github.event.label.name == 'run-testacc' || inputs.parent-event-name == 'release' }}
35
23
steps :
36
24
- uses : actions/checkout@v4
37
- if : ${{ needs.set-output.outputs.condition == 'true ' }}
25
+ if : ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || inputs.parent-event-name == 'release ' }}
38
26
- uses : dorny/paths-filter@v2
39
27
id : filter
40
28
with :
51
39
52
40
project :
53
41
needs : [ change-detection ]
54
- if : ${{ needs.set-output.outputs.condition == 'true' || needs. change-detection.outputs.project == 'true' || github.event.label.name == 'run-testacc-project-migration '}}
42
+ if : ${{ needs.change-detection.outputs.project == 'true' || github.event.label.name == 'run-testacc-project'|| needs.change-detection.outputs.shouldTriggerResourceTest == 'true '}}
55
43
runs-on : ubuntu-latest
56
44
steps :
57
45
- name : Checkout
87
75
88
76
config :
89
77
needs : [ change-detection ]
90
- if : ${{ needs.set-output.outputs.condition == 'true' || needs. change-detection.outputs.config == 'true' || github.event.label.name == 'run-testacc-config-migration '}}
78
+ if : ${{ needs.change-detection.outputs.config == 'true' || github.event.label.name == 'run-testacc-config'|| needs.change-detection.outputs.shouldTriggerResourceTest == 'true '}}
91
79
runs-on : ubuntu-latest
92
80
steps :
93
81
- name : Checkout
You can’t perform that action at this time.
0 commit comments