actions: only run these new workflows and new steps on `PCSX2/pcsx2`

This commit is contained in:
Tyler Wilding 2021-11-01 20:39:00 -04:00 committed by tellowkrinkle
parent 86e12c9603
commit 0a9cc924a4
5 changed files with 7 additions and 4 deletions

View File

@ -189,13 +189,13 @@ jobs:
# ---- Release / Tagging related steps ----
- name: Prepare Build Artifacts
if: startsWith(github.ref, 'refs/tags/') && matrix.appimage == true
if: github.repository == 'PCSX2/pcsx2' && startsWith(github.ref, 'refs/tags/') && matrix.appimage == true
run: |
mv ./ci-artifacts/*.AppImage ./ci-artifacts/linux-AppImage-${{ steps.artifact-metadata.outputs.arch }}.AppImage
ls ./ci-artifacts/
- name: Upload Assets and Potential Publish Release
if: startsWith(github.ref, 'refs/tags/') && matrix.appimage == true
if: github.repository == 'PCSX2/pcsx2' && startsWith(github.ref, 'refs/tags/') && matrix.appimage == true
env:
GITHUB_TOKEN: ${{ secrets.BOT_PAT }}
ASSET_DIR: ${{ github.WORKSPACE }}/ci-artifacts

View File

@ -5,6 +5,7 @@ on: pull_request_target
jobs:
triage:
if: github.repository == 'PCSX2/pcsx2'
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@main

View File

@ -6,6 +6,7 @@ on:
jobs:
announce:
if: github.repository == 'PCSX2/pcsx2'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

View File

@ -23,6 +23,7 @@ on:
jobs:
cut-release:
if: github.repository == 'PCSX2/pcsx2'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

View File

@ -171,7 +171,7 @@ jobs:
# ---- Release / Tagging related steps ----
- name: Prepare Build Artifacts
if: startsWith(github.ref, 'refs/tags/') && matrix.configuration != 'CMake'
if: github.repository == 'PCSX2/pcsx2' && startsWith(github.ref, 'refs/tags/') && matrix.configuration != 'CMake'
run: |
mkdir -p ./ci-artifacts/
7z a ./ci-artifacts/windows-${{ steps.artifact-metadata.outputs.arch }}-${{ steps.artifact-metadata.outputs.simd }}.7z ./bin/* '-xr!*bsc' '-xr!*.exp' '-xr!*.ilk' '-xr!*.iobj' '-xr!*.ipdb' '-xr!*.pdb' '-xr!*.lib'
@ -179,7 +179,7 @@ jobs:
ls ./ci-artifacts/
- name: Upload Assets and Potential Publish Release
if: startsWith(github.ref, 'refs/tags/') && matrix.configuration != 'CMake'
if: github.repository == 'PCSX2/pcsx2' && startsWith(github.ref, 'refs/tags/') && matrix.configuration != 'CMake'
env:
GITHUB_TOKEN: ${{ secrets.BOT_PAT }}
ASSET_DIR: ${{ github.WORKSPACE }}/ci-artifacts