Skip to content

Commit

Permalink
Skip deploy workflows in forked repos (#347)
Browse files Browse the repository at this point in the history
* Skip deploy workflows in forked repos

Signed-off-by: Yasumasa Suenaga <[email protected]>

* Add vars

Signed-off-by: Yasumasa Suenaga <[email protected]>

---------

Signed-off-by: Yasumasa Suenaga <[email protected]>
  • Loading branch information
YaSuenag authored Jul 11, 2023
1 parent 5caa384 commit 06c5577
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/2-pre-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/dev_carbon-aware-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 06c5577

Please sign in to comment.