Skip to content

Commit

Permalink
ci(self-hosted-e2e): Skip e2e test for forks completely
Browse files Browse the repository at this point in the history
  • Loading branch information
Dav1dde committed Jun 3, 2024
1 parent 23fa1f3 commit 0d94f82
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -619,27 +619,16 @@ jobs:
timeout-minutes: 25
needs: build-docker

# Skip redundant checks for library releases
if: "!startsWith(github.ref, 'refs/heads/release-library/')"
# - Skip redundant checks for library releases
# - Skip for dependabot or if it's a fork as the image cannot be uploaded to ghcr since this test attempts to pull
# the image from ghcr
if: "!startsWith(github.ref, 'refs/heads/release-library/') && !github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]'"

steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Download Docker Image
if: "github.event.pull_request.head.repo.fork || github.actor == 'dependabot[bot]'"
uses: actions/download-artifact@v4
with:
name: relay-docker-image

- name: Import Docker Image
if: "github.event.pull_request.head.repo.fork || github.actor == 'dependabot[bot]'"
run: docker load -i relay-docker-image

- name: Run Sentry self-hosted e2e CI
# Skip for dependabot or if it's a fork as the image cannot be uploaded to ghcr since this test attempts to pull
# the image from ghcr
if: "!github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]'"
uses: getsentry/action-self-hosted-e2e-tests@main
with:
project_name: relay
Expand Down

0 comments on commit 0d94f82

Please sign in to comment.