Prevent Test-Suite-Fork from running on main (#1638)
## Description As of now, it looks like we are running `Test-Suite-Fork` in `main` instead of `Test-Suite-Trusted`. This tweaks the conditions so as to restrict the `Test-Suite-Fork` to just fork PRs. ## Type of change <!--- Please check the type of change your PR introduces: ---> - [ ] 🌻 Feature - [ ] 🐛 Bugfix - [ ] 🗺️ Documentation - [ ] 🤖 Test - [x] 💻 CI/Deployment - [ ] 🐹 Trivial/Minor ## Test Plan <!-- How will this be tested prior to merging.--> - [ ] 💪 Manual - [ ] ⚡ Unit test - [ ] 💚 E2E
This commit is contained in:
parent
2778cd567e
commit
467c3c699c
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@ -144,10 +144,7 @@ jobs:
|
|||||||
needs: [Precheck, Checkout]
|
needs: [Precheck, Checkout]
|
||||||
environment: Testing
|
environment: Testing
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: (startsWith(github.ref, 'refs/tags/') ||
|
if: (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main') || (needs.precheck.outputs.srcfileschanged == 'true' && github.event.pull_request.head.repo.full_name == github.repository)
|
||||||
github.ref == 'refs/heads/main' ||
|
|
||||||
needs.precheck.outputs.srcfileschanged == 'true') &&
|
|
||||||
github.event.pull_request.head.repo.full_name == github.repository
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
working-directory: src
|
working-directory: src
|
||||||
@ -205,8 +202,7 @@ jobs:
|
|||||||
Test-Suite-Fork:
|
Test-Suite-Fork:
|
||||||
needs: [Precheck]
|
needs: [Precheck]
|
||||||
environment: Testing
|
environment: Testing
|
||||||
if: (needs.precheck.outputs.srcfileschanged == 'true' &&
|
if: (!startsWith(github.ref , 'refs/tags/') && github.ref != 'refs/heads/main') && (needs.precheck.outputs.srcfileschanged == 'true' && github.event.pull_request.head.repo.full_name != github.repository)
|
||||||
github.event.pull_request.head.repo.full_name != github.repository) # only run when repo is forked
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user