Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kostobog authored Nov 28, 2023
1 parent 1241e29 commit f668cbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ env:

jobs:
build-and-publish:

if: github.event_name != 'pull_request' || github.event.repository.full_name == github.event.pull_request.head.repo.full_name
runs-on: ubuntu-latest

steps:
- name: Exit if pull request is from a fork
run: |
if [ "${{ github.event_name }}" == "pull_request" ] && [ "${{ github.event.pull_request.head.repo.full_name }}" != "${{ github.event.repository.full_name }}" ]; then
echo "Skipping workflow as this pull request is from a fork."
exit 0
exit 78
fi
- uses: actions/checkout@v2

Expand Down

0 comments on commit f668cbc

Please sign in to comment.