Skip to content

Commit

Permalink
Run repo-sync workflow only in source repo + stop workflows from bein…
Browse files Browse the repository at this point in the history
…g triggered by new commit in main.
  • Loading branch information
Sichan Yoo committed Dec 12, 2024
1 parent acd52e4 commit f0598df
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/codegen.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Codegen

on:
push:
branches: [ main ]
pull_request:
workflow_dispatch:

Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: CI

on:
push:
branches: [ main ]
pull_request:
workflow_dispatch:

Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Lint

on:
push:
branches: [ main ]
pull_request:
workflow_dispatch:

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/repo-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
git-sync:
if: github.repository == 'smithy-lang/smithy-swift'
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit f0598df

Please sign in to comment.