Skip to content

Commit 8de120e

Browse files
Split into two jobs, so that everything in the second job is dependent on branch-deploy step succeeding.
1 parent 80b104c commit 8de120e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/smoketest.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@ permissions:
1414
statuses: read # Required for checking if all commit statuses are "success" in order to deploy the PR
1515

1616
jobs:
17-
Linux:
17+
permission-check:
1818
runs-on: ubuntu-latest
1919
environment: smoketest
2020
if: github.event.issue.pull_request # Make sure the comment is on a PR
21+
outputs:
22+
allowed: ${{ steps.branch-deploy.outputs.continue }}
2123
steps:
2224
- name: branch-deploy
2325
id: branch-deploy
@@ -29,6 +31,11 @@ jobs:
2931
stable_branch: "main"
3032
update_branch: "disabled"
3133

34+
run-tests:
35+
runs-on: ubuntu-latest
36+
needs: permission-check
37+
if: ${{ needs.permission-check.outputs.allowed == 'true' }}
38+
steps:
3239
- name: Setup Python
3340
uses: actions/setup-python@v5
3441
with:

0 commit comments

Comments
 (0)