Skip to content

Commit d53f748

Browse files
ci: allow zero-diff check to run on workflow_dispatch
Co-Authored-By: AJ Steers <aj@airbyte.io>
1 parent 12e4088 commit d53f748

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/test-full.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ jobs:
3434
zero-diff:
3535
name: Zero-Diff Check (Generated Code)
3636
needs: [validate]
37-
if: github.event_name == 'pull_request'
3837
runs-on: ubuntu-latest
3938
permissions:
4039
contents: read
@@ -52,15 +51,15 @@ jobs:
5251
fi
5352
5453
- name: Find existing drift comment
55-
if: steps.drift-check.outputs.has_diff == 'true'
54+
if: steps.drift-check.outputs.has_diff == 'true' && github.event_name == 'pull_request'
5655
uses: peter-evans/find-comment@v4
5756
id: find-drift-comment
5857
with:
5958
issue-number: ${{ github.event.pull_request.number }}
6059
body-includes: '<!-- zero-diff-check -->'
6160

6261
- name: Post drift comment on PR
63-
if: steps.drift-check.outputs.has_diff == 'true'
62+
if: steps.drift-check.outputs.has_diff == 'true' && github.event_name == 'pull_request'
6463
uses: peter-evans/create-or-update-comment@v5
6564
with:
6665
issue-number: ${{ github.event.pull_request.number }}

0 commit comments

Comments
 (0)