-
Notifications
You must be signed in to change notification settings - Fork 14
66 lines (59 loc) · 2 KB
/
staging.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
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Generate staging manifest
on:
repository_dispatch:
types: ["staging-manifest"]
# the push is for hacking on this without pushing to the main branch of catalyst
push:
branches:
- staging-generator
jobs:
staging-manifest:
name: Generate manifest file for staging environment
continue-on-error: true
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 0
# Check https://github.com/livepeer/go-livepeer/pull/1891
# for ref value discussion
ref: main
persist-credentials: false
- name: Set up go
id: go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
cache: true
cache-dependency-path: go.sum
- name: Install go modules
if: steps.go.outputs.cache-hit != 'true'
run: go mod download
- name: Generate new manifest
run: |
go run cmd/downloader/downloader.go -v=9 --manifest=./manifest.yaml --download=false --update-manifest=true
- name: Commit and push changes
id: branch-commit
uses: devops-infra/[email protected]
env:
GIT_COMMITTER_DATE: "Fri Sep 8 10:55:23 2023 -0700"
GIT_AUTHOR_DATE: "Fri Sep 8 10:55:23 2023 -0700"
with:
github_token: ${{ secrets.PUSH_TOKEN }}
target_branch: staging
commit_prefix: "[AUTO-COMMIT] "
commit_message: "Update `manifest.yaml`"
force: true
- name: Create pull request
uses: devops-infra/[email protected]
with:
github_token: ${{ secrets.PUSH_TOKEN }}
source_branch: ${{ steps.branch-commit.outputs.branch_name }}
target_branch: main
title: "[BOT] Update `manifest.yaml` for staging"
reviewer: iameli, thomshutt
assignee: ${{ github.actor }}
label: enhancement
get_diff: true
allow_no_diff: false