forked from GoogleCloudPlatform/ml-testing-accelerators
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 854 Bytes
/
generate.yml
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
# Build generated files and push them to the gen branch.
name: Build Generated Files
on:
push:
branches: [master]
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Branch to gen
run: |
git branch -f gen
- name: Setup Go environment
uses: actions/setup-go@v2
with:
go-version: '1.17'
- name: Install JSonnet
run: |
go install github.com/google/go-jsonnet/cmd/jsonnet@latest
go install github.com/google/go-jsonnet/cmd/jsonnetfmt@latest
echo "$HOME/go/bin" >> $GITHUB_PATH
- name: Build JSonnet templates
run: |
scripts/gen-tests.sh
- name: Git Commit/Push Changes
uses: actions-x/commit@v5
with:
branch: gen
files: k8s/
force: true