Skip to content
This repository has been archived by the owner on Feb 13, 2025. It is now read-only.

Commit

Permalink
push is not allowed from forked repos
Browse files Browse the repository at this point in the history
  • Loading branch information
Marina Frank committed Jan 7, 2025
1 parent 78d4104 commit f46b67f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ jobs:
strategy:
max-parallel: 1
matrix: ${{ fromJson(needs.config.outputs.deploy-pre-release-matrix) }}
if: ${{ !failure() && needs.release.result == 'success' && needs.config.outputs.deploy-pull-request == 'true' }}
if: ${{ !failure() && needs.release.result == 'success' && needs.config.outputs.deploy-pull-request == 'true' && env.FORKED == 'false' }}
needs:
- config
- build
Expand All @@ -196,6 +196,7 @@ jobs:
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ${{ env.REGISTRY }} -u $ --password-stdin

- name: Build image
if: ${{ env.FORKED == 'false' }}
id: docker-meta
env:
VERSION: "${{ needs.release.outputs.version }}"
Expand Down

0 comments on commit f46b67f

Please sign in to comment.