Skip to content

Commit

Permalink
[COST-4947] prevent running migration CI check if label is present (#…
Browse files Browse the repository at this point in the history
…5075)

* prevent running migration CI check if skip-migration-check label is present

* Update .github/workflows/ci.yml

---------

Co-authored-by: Sam Doran <[email protected]>
  • Loading branch information
cgoodfred and samdoran authored Apr 30, 2024
1 parent 91b0ffb commit 5ac84cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,9 @@ jobs:
pipenv install --dev --ignore-pipfile --python ${{ matrix.python-version }}
- name: Check migrations
if: needs.changed-files.outputs.run_tests == 'true'
if: |
needs.changed-files.outputs.run_tests == 'true'
&& !(contains(github.event.pull_request.labels.*.name, 'skip-migration-check'))
run: bash .github/scripts/check_migrations.sh
env:
DATABASE_SERVICE_NAME: POSTGRES_SQL
Expand Down

0 comments on commit 5ac84cc

Please sign in to comment.