Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/ci-check-table-alteration' into …
Browse files Browse the repository at this point in the history
…ci-check-table-alteration
  • Loading branch information
chrysle committed Apr 28, 2024
2 parents 88ca876 + 49ebd06 commit 7cfc000
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
branches: ["master", "src-layout"]
pull_request:
branches: ["master", "src-layout"]
schedule:
- cron: "0 12 1 * *"

permissions:
contents: read
Expand Down Expand Up @@ -35,11 +37,19 @@ jobs:
run: |
python -m pip install -r requirements.txt
- name: Generate compatibility matrix with nox
continue-on-error: true
run: |
python -m nox --report report.json
- name: Verify table has not been altered
run: |
cat report.json
python report_to_table.py
- name: Verify table has not been altered
git diff table.md
DIFF_FOR_TABLE=$(git diff table.md)
echo "DIFF_FOR_TABLE=$DIFF_FOR_TABLE" >> $GITHUB_OUTPUT
id: verify-table
- name: Fail the job
if: ${{ steps.verify-table.outputs.DIFF_FOR_TABLE != '' }}
run: |
git diff
git log
echo "::error file=table.md::Table has been altered but not committed!"
exit 1

0 comments on commit 7cfc000

Please sign in to comment.