-
Notifications
You must be signed in to change notification settings - Fork 19
42 lines (35 loc) · 1.12 KB
/
upstream-refs.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
41
42
name: Upstream reference checks
on:
pull_request:
branches:
- main
- release-[0-9]+.[0-9]+
defaults:
run:
shell: bash
jobs:
kind-tests:
runs-on: ubuntu-latest
env:
REGISTRY: localhost:5000
name: Upstream reference checks
steps:
- name: Checkout Config Policy Controller
uses: actions/checkout@v3
with:
path: config-policy-controller
fetch-depth: 0 # Fetch all history for all tags and branches
- name: Checkout Policy Framework
uses: actions/checkout@v3
with:
path: governance-policy-framework
repository: stolostron/governance-policy-framework
ref: ${{ github.event.pull_request.base.ref }}
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: governance-policy-framework/go.mod
- name: Detect upstream references that should be replaced
working-directory: config-policy-controller
run: |
./../governance-policy-framework/build/detect-upstream.sh -m "cat Makefile" -i "go list -mod readonly -m all" -q "deploy/manager/manager.yaml" -q "deploy/operator.yaml"