-
Notifications
You must be signed in to change notification settings - Fork 114
53 lines (45 loc) · 1.35 KB
/
ent.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Ent
on:
push:
branches: [main]
pull_request:
branches: [main]
# See https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#example-using-concurrency-to-cancel-any-in-progress-job-or-run
# cc
# xx
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
xtask:
runs-on: ubuntu-20.04
timeout-minutes: 120
steps:
- name: Checkout branch
uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: 'google-github-actions/auth@v2'
with:
credentials_json: ${{ secrets.GCP_SERVICE_ACCOUNT_KEY_JSON }}
- id: 'upload-file'
uses: 'google-github-actions/upload-cloud-storage@v2'
with:
process_gcloudignore: false
path: './buildconfigs'
destination: 'oak-bins/${{ github.sha }}/${{ github.action }}-${{ github.run_id }}-${{ github.run_attempt }}'
# Example of using the output
- id: 'uploaded-files'
env:
files: '${{ steps.upload-file.outputs.uploaded }}'
run: |
set -o errexit
set -o nounset
set -o xtrace
set -o pipefail
IFS=,
files_array=($files)
for file in "${files_array[@]}"; do
echo $file
done
unset IFS