From 62fa074f9f66e0f7e3375273d2669987f48b244f Mon Sep 17 00:00:00 2001 From: Megamouse Date: Tue, 29 Apr 2025 14:10:52 +0200 Subject: [PATCH] github actions: disable pushes unless it's the RPCS3 master branch --- .github/workflows/rpcs3.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/rpcs3.yml b/.github/workflows/rpcs3.yml index 1a820bdc4f..697fff1e96 100644 --- a/.github/workflows/rpcs3.yml +++ b/.github/workflows/rpcs3.yml @@ -5,6 +5,8 @@ defaults: shell: bash on: push: + branches: + - master # Only trigger push event on 'master' branch pull_request: workflow_dispatch: @@ -20,6 +22,8 @@ env: jobs: Linux_Build: + # Only run push event on master branch of main repo, but run all PRs + if: github.event_name != 'push' || (github.repository == 'RPCS3/rpcs3' && github.ref_name == 'master') strategy: fail-fast: false matrix: @@ -100,6 +104,8 @@ jobs: .ci/github-upload.sh Windows_Build: + # Only run push event on master branch of main repo, but run all PRs + if: github.event_name != 'push' || (github.repository == 'RPCS3/rpcs3' && github.ref_name == 'master') name: RPCS3 Windows runs-on: windows-2025 env: