diff --git a/.github/workflows/run-matrix-xvfb.yml b/.github/workflows/run-matrix-xvfb.yml index 187e04d7..afcfa07f 100644 --- a/.github/workflows/run-matrix-xvfb.yml +++ b/.github/workflows/run-matrix-xvfb.yml @@ -2,10 +2,13 @@ name: Run all versions with Xvfb on: workflow_dispatch: workflow_call: + push: + pull_request: jobs: build: runs-on: ubuntu-latest + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name steps: - uses: actions/checkout@v4 - uses: actions/setup-java@v4 @@ -73,6 +76,7 @@ jobs: - { mc: 1.8.9, type: lexforge, modloader: forge, regex: .*orge.*, java: 8 } - { mc: 1.7.10, type: lexforge, modloader: forge, regex: .*orge.*, java: 8 } runs-on: ubuntu-latest + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name needs: build steps: - uses: actions/download-artifact@v4 diff --git a/.github/workflows/run-matrix.yml b/.github/workflows/run-matrix.yml index ae72fb53..12beafab 100644 --- a/.github/workflows/run-matrix.yml +++ b/.github/workflows/run-matrix.yml @@ -2,10 +2,13 @@ name: Run all versions with HMC -lwjgl on: workflow_dispatch: workflow_call: + push: + pull_request: jobs: build: runs-on: ubuntu-latest + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name steps: - uses: actions/checkout@v4 - uses: actions/setup-java@v4 @@ -73,6 +76,7 @@ jobs: - { mc: 1.8.9, type: lexforge, modloader: forge, regex: .*orge.*, java: 8 } - { mc: 1.7.10, type: lexforge, modloader: forge, regex: .*orge.*, java: 8 } runs-on: ubuntu-latest + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name needs: build steps: - uses: actions/download-artifact@v4