-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 1.13 KB
/
doctor.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
name: Dr. Releng
on:
pull_request:
paths:
- policy/templates/**
jobs:
doctor:
runs-on: ubuntu-latest
container: tykio/gromit:v1.6
strategy:
fail-fast: false
matrix:
repo: [tyk, tyk-analytics, tyk-pump, tyk-identity-broker, tyk-sink, portal]
branch: [master]
feature: [releng]
steps:
- name: checkout repo
uses: actions/checkout@v4
with:
repository: TykTechnologies/${{ matrix.repo }}
token: ${{ secrets.ORG_GH_TOKEN }}
path: ${{ matrix.repo }}
fetch-depth: 1
- name: checkout gromit
uses: actions/checkout@v4
with:
fetch-depth: 1
path: gromit
- name: Generate
run: gromit bundle gen --features ./gromit/policy/templates/${{ matrix.feature }} --branch ${{matrix.branch}} --repo ${{ matrix.repo }}$ {{ matrix.repo }}
- name: Check for zero diffs
run: |
op_file=${{ matrix.repo }}-${{ matrix.bundle }}-${{matrix.branch}}.txt
gromit git diff ${{ matrix.repo }} 2>${op_file}
[ $? != 0 ] && echo "::warning::$(cat $op_file)"