Syse 288/deprecating old pipelines #230
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | | |
echo "## :hospital: ℞ ${{ matrix.repo }} ${{ matrix.feature }} ${{matrix.branch}}" >> $GITHUB_STEP_SUMMARY | |
op_file=diff.log | |
if gromit policy diff ${{ matrix.repo }} >${op_file} 2>&1; then | |
echo '```diff' >> $GITHUB_STEP_SUMMARY | |
cat $op_file >> $GITHUB_STEP_SUMMARY | |
echo '```' >> $GITHUB_STEP_SUMMARY | |
exit 1 | |
else | |
echo No further treatment >> $GITHUB_STEP_SUMMARY | |
fi |