Prevent PR jobs from running in the main branch
Some checks failed
Run unit tests / copyright_notice (pull_request) Successful in 44s
Run unit tests / check-licenses (pull_request) Failing after 52s
Run unit tests / rubocop (pull_request) Successful in 1m6s
Run unit tests / unit_tests (pull_request) Successful in 1m46s
Run unit tests / build-static-assets (pull_request) Has been skipped

This commit is contained in:
Manuel Bustillo 2025-06-11 19:06:58 +02:00
parent 2fe72a34e4
commit b9770b7a9f

View File

@ -65,6 +65,7 @@ jobs:
if: failure() if: failure()
run: docker ps --filter network=$JOB_CONTAINER_NAME-$GITHUB_JOB-network --filter name=$JOB_CONTAINER_NAME-* --format "{{.ID}}" | xargs docker rm -f run: docker ps --filter network=$JOB_CONTAINER_NAME-$GITHUB_JOB-network --filter name=$JOB_CONTAINER_NAME-* --format "{{.ID}}" | xargs docker rm -f
rubocop: rubocop:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -74,6 +75,7 @@ jobs:
- run: bundle install - run: bundle install
- run: bundle exec rubocop --force-exclusion --parallel - run: bundle exec rubocop --force-exclusion --parallel
check-licenses: check-licenses:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -85,6 +87,7 @@ jobs:
- name: Run license finder - name: Run license finder
run: license_finder run: license_finder
copyright_notice: copyright_notice:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4