Skip to content

Commit 803a1aa

Browse files
ci: trigger build by push and snyk by PR
1 parent 84068d3 commit 803a1aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build-on-branch.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ on:
1111
- skaffold.yaml
1212
- src/**
1313
pull_request_target:
14-
types: [opened, synchronize, reopened]
1514

1615
workflow_call:
1716
secrets:
@@ -23,8 +22,8 @@ env:
2322
SKAFFOLD_VERSION: 2.13.2
2423

2524
jobs:
26-
2725
snyk:
26+
if: github.event_name == 'pull_request_target'
2827
uses: ./.github/workflows/snyk.yaml
2928
permissions:
3029
security-events: write
@@ -34,6 +33,7 @@ jobs:
3433
SNYK_API_TOKEN: ${{ secrets.SNYK_API_TOKEN }}
3534

3635
build-easytrade:
36+
if: github.event_name == 'push'
3737
runs-on: ubuntu-24.04
3838
steps:
3939
- name: Checkout repository

0 commit comments

Comments
 (0)