mirror of
https://github.com/akuker/RASCSI.git
synced 2026-04-25 14:26:28 +00:00
check for fork before pushing a container to GHCR
This commit is contained in:
@@ -72,7 +72,14 @@ jobs:
|
||||
run: docker compose -f docker-compose.ci.yml run pytest -v
|
||||
|
||||
- name: Push backend image to container registry
|
||||
if: (success() || failure()) && github.actor != 'dependabot[bot]' && github.actor != 'dependabot'
|
||||
if: |
|
||||
(success() || failure())
|
||||
&& github.actor != 'dependabot[bot]'
|
||||
&& github.actor != 'dependabot'
|
||||
&& (
|
||||
github.event_name != 'pull_request'
|
||||
|| github.event.pull_request.head.repo.full_name == github.repository
|
||||
)
|
||||
run: docker compose -f docker-compose.ci.yml push backend
|
||||
|
||||
- name: Upload test artifacts
|
||||
|
||||
Reference in New Issue
Block a user