4
4
schedule :
5
5
- cron : " 0 9 * * *" # 9am UTC = 1am PST / 2am PDT
6
6
pull_request :
7
- types : [ labeled, closed, opened, reopened, synchronize ]
7
+ types : [ labeled, closed ]
8
8
9
9
workflow_dispatch :
10
10
inputs :
72
72
env :
73
73
GITHUB_TOKEN : ${{ github.token }}
74
74
# ## It sets "github_ref,trigger,pr_number,requested_tests" outputs to control the following jobs and steps
75
- # ## trigger value: manual_trigger, scheduled_trigger, label_trigger, postsubmit_trigger, presubmit_trigger
75
+ # ## trigger value: manual_trigger, scheduled_trigger, label_trigger, postsubmit_trigger
76
76
- id : set_outputs
77
77
run : |
78
78
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
@@ -118,9 +118,6 @@ jobs:
118
118
echo "::set-output name=trigger::postsubmit_trigger"
119
119
echo "::set-output name=pr_number::${{ github.event.pull_request.number }}"
120
120
echo "::set-output name=requested_tests::auto"
121
- elif [[ "opened,reopened,synchronize" == *"${{ github.event.action }}"* ]]; then
122
- echo "::set-output name=trigger::presubmit_trigger"
123
- echo "::set-output name=requested_tests::minimal"
124
121
fi
125
122
fi
126
123
# ## If it's not a defined trigger, cancel workflow
@@ -134,7 +131,7 @@ jobs:
134
131
sleep 300
135
132
exit 1 # fail out if the cancellation above somehow failed.
136
133
- name : Cancel previous runs on the same PR
137
- if : steps.set_outputs.outputs.trigger == 'presubmit_trigger '
134
+ if : steps.set_outputs.outputs.trigger == 'label_trigger '
138
135
139
136
with :
140
137
access_token : ${{ github.token }}
@@ -238,12 +235,6 @@ jobs:
238
235
with :
239
236
path : external/vcpkg/installed
240
237
key : dev-vcpkg-${{ env.VCPKG_TRIPLET }}-${{ hashFiles(format('{0}', env.VCPKG_RESPONSE_FILE)) }}-${{ hashFiles('.git/modules/external/vcpkg/HEAD') }}
241
- - name : Cache ccache files
242
- if : needs.check_and_prepare.outputs.trigger == 'presubmit_trigger'
243
- uses : actions/cache@v2
244
- with :
245
- path : ccache_dir
246
- key : presubmit-integration-test-ccache
247
238
- name : Setup python
248
239
uses : actions/setup-python@v2
249
240
with :
0 commit comments