From df1ae591bc5ba316358e156b75766394f059af48 Mon Sep 17 00:00:00 2001 From: Nathan Stocks Date: Wed, 20 Sep 2023 10:20:59 -0600 Subject: [PATCH] only run workflows that do administrative things where it makes sense, not in forks -- things like deploys from the official repository or daily builds --- .github/workflows/daily.yml | 5 +++++ .github/workflows/docs.yml | 1 + .github/workflows/post-release.yml | 1 + .github/workflows/release.yml | 1 + 4 files changed, 8 insertions(+) diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index a21d00dfc6e72..79df092add62a 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -11,6 +11,7 @@ env: jobs: build-for-iOS: + if: github.repository == 'bevyengine/bevy' runs-on: macos-latest timeout-minutes: 30 steps: @@ -38,6 +39,7 @@ jobs: -F "custom_id=$GITHUB_RUN_ID" build-for-Android: + if: github.repository == 'bevyengine/bevy' runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -65,6 +67,7 @@ jobs: -F "custom_id=$GITHUB_RUN_ID" nonce: + if: github.repository == 'bevyengine/bevy' runs-on: ubuntu-latest timeout-minutes: 30 outputs: @@ -74,6 +77,7 @@ jobs: run: echo "result=${{ github.run_id }}-$(date +%s)" >> $GITHUB_OUTPUT run: + if: github.repository == 'bevyengine/bevy' runs-on: ubuntu-latest timeout-minutes: 30 needs: [nonce, build-for-iOS, build-for-Android] @@ -112,6 +116,7 @@ jobs: path: .github/start-mobile-example/*.png check-result: + if: github.repository == 'bevyengine/bevy' runs-on: ubuntu-latest timeout-minutes: 30 needs: [run] diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index ac2ba5c3e0632..e66554022c2c4 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -46,6 +46,7 @@ jobs: touch target/doc/.nojekyll - name: Deploy + if: github.repository == 'bevyengine/bevy' uses: JamesIves/github-pages-deploy-action@v4 with: branch: gh-pages diff --git a/.github/workflows/post-release.yml b/.github/workflows/post-release.yml index 01a8467f998a4..a7cce2e0380e7 100644 --- a/.github/workflows/post-release.yml +++ b/.github/workflows/post-release.yml @@ -9,6 +9,7 @@ env: jobs: ci: + if: github.repository == 'bevyengine/bevy' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 14729c1c19035..20c3ffa04d59f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,6 +9,7 @@ env: jobs: ci: + if: github.repository == 'bevyengine/bevy' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4