44 schedule :
55 - cron : " 0 9 * * *" # 9am UTC = 1am PST / 2am PDT
66 pull_request :
7- types : [ labeled, closed, opened, reopened, synchronize ]
7+ types : [ labeled, closed ]
88
99 workflow_dispatch :
1010 inputs :
7272 env :
7373 GITHUB_TOKEN : ${{ github.token }}
7474 # ## 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
7676 - id : set_outputs
7777 run : |
7878 if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
@@ -118,9 +118,6 @@ jobs:
118118 echo "::set-output name=trigger::postsubmit_trigger"
119119 echo "::set-output name=pr_number::${{ github.event.pull_request.number }}"
120120 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"
124121 fi
125122 fi
126123 # ## If it's not a defined trigger, cancel workflow
@@ -134,7 +131,7 @@ jobs:
134131 sleep 300
135132 exit 1 # fail out if the cancellation above somehow failed.
136133 - 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 '
138135 uses : styfle/cancel-workflow-action@0.8.0
139136 with :
140137 access_token : ${{ github.token }}
@@ -238,12 +235,6 @@ jobs:
238235 with :
239236 path : external/vcpkg/installed
240237 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
247238 - name : Setup python
248239 uses : actions/setup-python@v2
249240 with :
0 commit comments