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