From f0598df57499eb3b1ac317c4af3cc4ba78ecb7bb Mon Sep 17 00:00:00 2001 From: Sichan Yoo Date: Thu, 12 Dec 2024 15:44:36 -0800 Subject: [PATCH] Run repo-sync workflow only in source repo + stop workflows from being triggered by new commit in main. --- .github/workflows/codegen.yml | 2 -- .github/workflows/continuous-integration.yml | 2 -- .github/workflows/lint.yml | 2 -- .github/workflows/repo-sync.yml | 1 + 4 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/codegen.yml b/.github/workflows/codegen.yml index 578cb3b7d..9bcce460f 100644 --- a/.github/workflows/codegen.yml +++ b/.github/workflows/codegen.yml @@ -1,8 +1,6 @@ name: Codegen on: - push: - branches: [ main ] pull_request: workflow_dispatch: diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index c58b4dbb4..dd2dd8f12 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -1,8 +1,6 @@ name: CI on: - push: - branches: [ main ] pull_request: workflow_dispatch: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 8aaa6c8b0..fa2c3568c 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,8 +1,6 @@ name: Lint on: - push: - branches: [ main ] pull_request: workflow_dispatch: diff --git a/.github/workflows/repo-sync.yml b/.github/workflows/repo-sync.yml index a789c21b5..484f7ff57 100644 --- a/.github/workflows/repo-sync.yml +++ b/.github/workflows/repo-sync.yml @@ -7,6 +7,7 @@ on: jobs: git-sync: + if: github.repository == 'smithy-lang/smithy-swift' runs-on: ubuntu-latest steps: