fix(worfklows): bypass e2e checks for forked prs (#4592)

Signed-off-by: Rui Chen <rui@chenrui.dev>
Co-authored-by: Rui Chen <rui@chenrui.dev>
This commit is contained in:
Luke Massa
2024-05-23 00:23:47 -04:00
committed by GitHub
parent d819dbe8d4
commit 3417886a8a

View File

@@ -104,7 +104,8 @@ jobs:
e2e-github:
runs-on: ubuntu-latest
# dont run e2e tests on forked PRs
if: github.repository_owner == 'runatlantis'
if: github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.fork == false
env:
TERRAFORM_VERSION: 1.8.3
ATLANTISBOT_GITHUB_USERNAME: ${{ secrets.ATLANTISBOT_GITHUB_USERNAME }}