Skip to content

Commit 1e54c05

Browse files
authored
feat: add conditional triggers for workflows based on repository and event type (#664)
1 parent 53cb71d commit 1e54c05

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

.github/workflows/codeql-scan.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ on:
2929

3030
jobs:
3131
codeql:
32+
if: (github.event_name == 'schedule' && github.repository == 'apache/fesod') || (github.event_name != 'schedule')
3233
name: CodeQL Analysis
3334
runs-on: ubuntu-latest
3435
permissions:

.github/workflows/deploy-docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ on:
2323

2424
jobs:
2525
deploy:
26+
if: github.repository == 'apache/fesod'
2627
runs-on: ubuntu-latest
2728
steps:
2829
- uses: actions/checkout@v4

.github/workflows/fuzz-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ on:
2424

2525
jobs:
2626
fuzz:
27+
if: (github.event_name == 'schedule' && github.repository == 'apache/fesod') || (github.event_name != 'schedule')
2728
runs-on: ubuntu-latest
2829
timeout-minutes: 360
2930
env:

.github/workflows/nightly.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ permissions:
2525
pull-requests: write
2626
jobs:
2727
nightly-test:
28+
if: (github.event_name == 'schedule' && github.repository == 'apache/fesod') || (github.event_name != 'schedule')
2829
runs-on: ubuntu-24.04
2930
strategy:
3031
matrix:

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ on:
2424

2525
jobs:
2626
publish:
27+
if: github.repository == 'apache/fesod'
2728
runs-on: ubuntu-latest
2829
steps:
2930
- name: Check out Git repository

0 commit comments

Comments
 (0)