From 06c5577397815f2e867a349da7c74be06a9423d1 Mon Sep 17 00:00:00 2001 From: Yasumasa Suenaga Date: Tue, 11 Jul 2023 15:40:10 +0900 Subject: [PATCH] Skip deploy workflows in forked repos (#347) * Skip deploy workflows in forked repos Signed-off-by: Yasumasa Suenaga * Add vars Signed-off-by: Yasumasa Suenaga --------- Signed-off-by: Yasumasa Suenaga --- .github/workflows/2-pre-release.yaml | 1 + .github/workflows/dev_carbon-aware-api.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/2-pre-release.yaml b/.github/workflows/2-pre-release.yaml index 11f07d5f0..ddd6afe72 100644 --- a/.github/workflows/2-pre-release.yaml +++ b/.github/workflows/2-pre-release.yaml @@ -18,6 +18,7 @@ concurrency: jobs: publish-container-image: + if: github.repository == 'Green-Software-Foundation/carbon-aware-sdk' || vars.ENABLE_PRERELEASE_WORKFLOW == 'true' runs-on: ubuntu-latest permissions: packages: write diff --git a/.github/workflows/dev_carbon-aware-api.yml b/.github/workflows/dev_carbon-aware-api.yml index fc3dc2494..643d58b8d 100644 --- a/.github/workflows/dev_carbon-aware-api.yml +++ b/.github/workflows/dev_carbon-aware-api.yml @@ -11,6 +11,7 @@ on: jobs: build: + if: github.repository == 'Green-Software-Foundation/carbon-aware-sdk' || vars.ENABLE_WEBAPP_WORKFLOW == 'true' runs-on: windows-latest steps: