Skip to content

Commit 7ff5889

Browse files
committed
only run tests if nightly publish needed
1 parent bee6f13 commit 7ff5889

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/nightly_release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ permissions:
99
contents: write # Grant write permission for tagging
1010

1111
jobs:
12-
tests:
13-
uses: ./.github/workflows/run_integration_tests.yml
1412
check_publish_needed:
1513
runs-on: ubuntu-latest
1614
name: Check if this commit has already been published
@@ -35,6 +33,10 @@ jobs:
3533
echo "New commit detected."
3634
echo "should_run=true" >> $GITHUB_OUTPUT
3735
fi
36+
tests:
37+
needs: check_publish_needed
38+
if: ${{ needs.check_publish_needed.outputs.should_run == 'true' }}
39+
uses: ./.github/workflows/run_integration_tests.yml
3840

3941
build_and_publish_nightly:
4042
needs: [check_publish_needed, tests]

0 commit comments

Comments
 (0)