Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <578543+webknjaz@users.noreply.github.com>
  • Loading branch information
chrysle and webknjaz committed Apr 28, 2024
1 parent 7cfc000 commit 5095dcd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{env.PYTHON_VERSIONS}}
python-version: ${{ env.PYTHON_VERSIONS }}
- name: Install dependencies
run: |
python -m pip install -r requirements.txt
Expand All @@ -42,14 +42,15 @@ jobs:
python -m nox --report report.json
- name: Verify table has not been altered
run: |
set -xeEuo pipefail
cat report.json
python report_to_table.py
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 != '' }}
- name: Fail the job if the committed table differs from the calculated one
if: steps.verify-table.outputs.DIFF_FOR_TABLE != ''
run: |
echo "::error file=table.md::Table has been altered but not committed!"
exit 1

0 comments on commit 5095dcd

Please sign in to comment.