diff --git a/.github/workflows/build-and-run.yml b/.github/workflows/build-and-run.yml index cd84a896..249f6257 100644 --- a/.github/workflows/build-and-run.yml +++ b/.github/workflows/build-and-run.yml @@ -16,6 +16,7 @@ env: jobs: code-quality: + if: github.repository == 'beehive-lab/GPULlama3.java' runs-on: self-hosted timeout-minutes: 30 @@ -29,6 +30,7 @@ jobs: # ./mvnw -T12C -Pspotless spotless:check build-and-run: + if: github.repository == 'beehive-lab/GPULlama3.java' runs-on: [self-hosted] needs: code-quality timeout-minutes: 30 diff --git a/.github/workflows/deploy-maven-central.yml b/.github/workflows/deploy-maven-central.yml index 9a262d5b..a30c48ef 100644 --- a/.github/workflows/deploy-maven-central.yml +++ b/.github/workflows/deploy-maven-central.yml @@ -24,6 +24,7 @@ on: jobs: deploy: name: Deploy to Maven Central + if: github.repository == 'beehive-lab/GPULlama3.java' runs-on: [self-hosted, Linux, x64] timeout-minutes: 15 env: diff --git a/.github/workflows/finalize-release.yml b/.github/workflows/finalize-release.yml index de6a6908..c68e72bb 100644 --- a/.github/workflows/finalize-release.yml +++ b/.github/workflows/finalize-release.yml @@ -15,8 +15,9 @@ jobs: create-release-tag: # Run when release PR merges OR manual trigger if: | - (github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release/')) || - github.event_name == 'workflow_dispatch' + github.repository == 'beehive-lab/GPULlama3.java' && + ((github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release/')) || + github.event_name == 'workflow_dispatch') runs-on: [self-hosted, Linux, x64] permissions: contents: write @@ -131,7 +132,7 @@ jobs: runs-on: [self-hosted, Linux, x64] permissions: contents: write - if: github.event_name == 'pull_request' + if: github.repository == 'beehive-lab/GPULlama3.java' && github.event_name == 'pull_request' steps: - name: Delete release branch diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index a093102f..e199727b 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -23,6 +23,7 @@ env: jobs: prepare-release: + if: github.repository == 'beehive-lab/GPULlama3.java' runs-on: [self-hosted, Linux, x64] permissions: contents: write diff --git a/.github/workflows/rerun-workflow.yml b/.github/workflows/rerun-workflow.yml index 6891ad92..e4b14e75 100644 --- a/.github/workflows/rerun-workflow.yml +++ b/.github/workflows/rerun-workflow.yml @@ -9,6 +9,7 @@ jobs: name: Rerun CI Workflows # Only run on PR comments (not issue comments) with /rerun command if: | + github.repository == 'beehive-lab/GPULlama3.java' && github.event.issue.pull_request && contains(github.event.comment.body, '/rerun') runs-on: ubuntu-latest