Skip to content

Commit 42be0cc

Browse files
committed
Don't run build when generator needs to run during PR
1 parent 44a06ac commit 42be0cc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/nuget-publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
jobs:
1010
build:
1111
runs-on: ubuntu-latest
12+
# Only depend on generate-and-commit if this is a PR event
13+
needs: ${{ github.event_name == 'pull_request' && 'generate-and-commit' || '' }}
14+
if: ${{ github.event_name != 'pull_request' || always() }}
1215
steps:
1316
- uses: actions/checkout@v4
1417

0 commit comments

Comments
 (0)