diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 99cb57ea..3344a895 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -47,6 +47,7 @@ on: jobs: # Create the Github Releaseā„¢ so the packages have something to be uploaded to create-release: + if: github.repository == 'bottlerocket-os/twoliter' environment: release runs-on: group: bottlerocket @@ -93,6 +94,7 @@ jobs: # Build and packages all the things upload-artifacts: + if: github.repository == 'bottlerocket-os/twoliter' # Let the initial task tell us to not run (currently very blunt) needs: create-release if: ${{ needs.create-release.outputs.has-releases == 'true' }} @@ -150,6 +152,7 @@ jobs: # Mark the Github Releaseā„¢ as a non-draft now that everything has succeeded! publish-release: + if: github.repository == 'bottlerocket-os/twoliter' # Only run after all the other tasks, but it's ok if upload-artifacts was skipped needs: [create-release, upload-artifacts] if: ${{ always() && needs.create-release.result == 'success' && (needs.upload-artifacts.result == 'skipped' || needs.upload-artifacts.result == 'success') }} diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 28cd6e06..279ab919 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -8,13 +8,6 @@ on: - "**.md" - "**.plantuml" - "**.svg" - # triggers when a PR is merged - push: - branches: [develop] - paths-ignore: - - "**.md" - - "**.plantuml" - - "**.svg" jobs: build: runs-on: