Skip to content

Commit

Permalink
Healer, heal thyself.
Browse files Browse the repository at this point in the history
  • Loading branch information
alephnull committed Nov 21, 2023
1 parent 205d352 commit e606199
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions .github/workflows/doctor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,34 @@ on:
jobs:
doctor:
runs-on: ubuntu-latest
container: tykio/gromit:v1.5
container: tykio/gromit:v1.6
strategy:
fail-fast: false
matrix:
repo: [tyk, tyk-analytics, tyk-pump, tyk-identity-broker, tyk-sink, portal]
branch: [master]
bundle: [releng]
feature: [releng]

steps:
- uses: actions/checkout@v3
- 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 --bundle ${{ matrix.bundle }} --branch ${{matrix.branch}} --repo ${{ matrix.repo }} gen ${{ matrix.repo }}
run: gromit bundle gen --features ./gromit/policy/templates/${{ matrix.feature }} --branch ${{matrix.branch}} --repo ${{ matrix.repo }}$ {{ 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}"
op_file=${{ matrix.repo }}-${{ matrix.bundle }}-${{matrix.branch}}.txt
gromit git diff ${{ matrix.repo }} 2>${op_file}
[ $? != 0 ] && echo "::warning::$(cat $op_file)"

0 comments on commit e606199

Please sign in to comment.