File tree Expand file tree Collapse file tree 2 files changed +69
-0
lines changed
Expand file tree Collapse file tree 2 files changed +69
-0
lines changed Original file line number Diff line number Diff line change 1+ name : kms
2+ on :
3+ push :
4+ branches :
5+ - main
6+ paths :
7+ - ' kms/**'
8+ pull_request :
9+ paths :
10+ - ' kms/**'
11+ pull_request_target :
12+ types : [labeled]
13+ paths :
14+ - ' kms/**'
15+ schedule :
16+ - cron : ' 0 0 * * 0'
17+ jobs :
18+ test :
19+ if : ${{ github.event.action != 'labeled' || github.event.label.name == 'actions:force-run' }}
20+ runs-on : ubuntu-latest
21+ timeout-minutes : 60
22+ permissions :
23+ contents : ' write'
24+ pull-requests : ' write'
25+ id-token : ' write'
26+ steps :
27+ 28+ with :
29+ ref : ${{github.event.pull_request.head.sha}}
30+ -
uses :
' google-github-actions/[email protected] ' 31+ with :
32+ workload_identity_provider : ' projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider'
33+ service_account :
' [email protected] ' 34+ create_credentials_file : ' true'
35+ access_token_lifetime : 600s
36+ 37+ with :
38+ node-version : 16
39+ - run : npm install
40+ working-directory : kms
41+ - run : npm test
42+ working-directory : kms
43+ env :
44+ MOCHA_REPORTER_SUITENAME : kms
45+ MOCHA_REPORTER_OUTPUT : kms_sponge_log.xml
46+ MOCHA_REPORTER : xunit
47+ - if : ${{ github.event.action == 'labeled' && github.event.label.name == 'actions:force-run' }}
48+ uses : actions/github-script@v6
49+ with :
50+ github-token : ${{ secrets.GITHUB_TOKEN }}
51+ script : |
52+ try {
53+ await github.rest.issues.removeLabel({
54+ name: 'actions:force-run',
55+ owner: 'GoogleCloudPlatform',
56+ repo: 'nodejs-docs-samples',
57+ issue_number: context.payload.pull_request.number
58+ });
59+ } catch (e) {
60+ if (!e.message.includes('Label does not exist')) {
61+ throw e;
62+ }
63+ }
64+ - if : ${{ github.event_name == 'schedule'}}
65+ run : |
66+ curl https://github.com/googleapis/repo-automation-bots/releases/download/flakybot-1.1.0/flakybot -o flakybot -s -L
67+ chmod +x ./flakybot
68+ ./flakybot --repo GoogleCloudPlatform/nodejs-docs-samples --commit_hash ${{github.sha}} --build_url https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
Original file line number Diff line number Diff line change 4444 " healthcare/dicom" ,
4545 " healthcare/fhir" ,
4646 " healthcare/hl7v2" ,
47+ " kms" ,
4748 " game-servers/snippets" ,
4849 " mediatranslation" ,
4950 " monitoring/opencensus" ,
You can’t perform that action at this time.
0 commit comments