Skip to content

Commit aa422cd

Browse files
authored
Merge pull request #5059 from baywet/ci/condition-workflows-tokens
ci: adds conditions to avoid jobs which depends on tokens to run on forks
2 parents 73e9619 + a80e11b commit aa422cd

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.github/workflows/sync-dev-to-vX.Y-dev.yaml

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

1616
jobs:
1717
sync-branches:
18+
if: github.repository == 'OAI/OpenAPI-Specification'
1819
runs-on: ubuntu-latest
1920
steps:
2021
- name: Generate access token

.github/workflows/sync-main-to-dev.yaml

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

1616
jobs:
1717
sync-branch:
18+
if: github.repository == 'OAI/OpenAPI-Specification'
1819
runs-on: ubuntu-latest
1920
steps:
2021
- name: Generate access token

0 commit comments

Comments
 (0)