Skip to content

Commit

Permalink
ci: only rebuild docker if event is pull request and is from outside (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo authored Aug 7, 2024
1 parent a5196d0 commit 45f0bc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci-test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ jobs:

# if we are testing a PR from a fork, we need to build the docker image at this point
- uses: ./.github/actions/build-docker
if: github.event.pull_request.head.repo.full_name != github.repository
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository
with:
CR_USER: ${{ secrets.CR_USER }}
CR_PAT: ${{ secrets.CR_PAT }}
Expand Down

0 comments on commit 45f0bc7

Please sign in to comment.