Skip to content

Commit 8104ae8

Browse files
Ci: add repository condition for validation jobs in smoke tests to exclude forks (#1260)
Disable smoke tests for forks. WA for CICD as secrets used in smoke tests are not being passed to forks, resulting in None being passed in configs and failing tests. Fixes: b2e137d
1 parent 9e23a22 commit 8104ae8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/smoke-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ permissions:
1717
contents: read
1818
jobs:
1919
validation-build-mtl:
20+
if: github.repository == 'Media-Transport-Library/Media-Transport-Library'
2021
runs-on: [Linux, self-hosted, DPDK]
2122
timeout-minutes: 60
2223
outputs:
@@ -136,6 +137,7 @@ jobs:
136137
echo "VIRTUAL_ENV=$PWD/venv/bin/activate" >> "$GITHUB_ENV"
137138
validation-run-tests:
138139
needs: [validation-build-mtl]
140+
if: github.repository == 'Media-Transport-Library/Media-Transport-Library'
139141
runs-on: [self-hosted, "${{ needs.validation-build-mtl.outputs.runner-id }}"]
140142
timeout-minutes: 720
141143
env:

0 commit comments

Comments
 (0)