diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index 04cf4ea32..e7b961602 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -63,7 +63,7 @@ jobs: - name: Change config filename run: sed -r --in-place 's/\%\%RYUJINX_CONFIG_FILE_NAME\%\%/PRConfig\.json/g;' src/Ryujinx.Common/ReleaseInformation.cs shell: bash - if: forgejo.event_name == 'pull_request' + if: forgejo.event_name == 'pull_request_target' - name: 'Cache: ~/.nuget/packages' uses: actions/cache@v5 @@ -85,7 +85,7 @@ jobs: - name: Publish Ryujinx run: dotnet publish -c "${{ matrix.configuration }}" -r "${{ matrix.platform.name }}" -o ./publish -p:Version="${{ steps.version_info.outputs.result }}" -p:DebugType=embedded -p:SourceRevisionId="${{ steps.version_info.outputs.git_short_hash }}" -p:ExtraDefineConstants=DISABLE_UPDATER src/Ryujinx --self-contained - if: forgejo.event_name == 'pull_request' + if: forgejo.event_name == 'pull_request_target' - name: Packing Windows builds if: contains(matrix.platform.name, 'win') @@ -98,10 +98,10 @@ jobs: with: name: ryujinx-${{ matrix.configuration }}-${{ steps.version_info.outputs.result }}+${{ steps.version_info.outputs.git_short_hash }}-${{ matrix.platform.zip_os_name }} path: artifact - if: forgejo.event_name == 'pull_request' && contains(matrix.platform.name, 'win') + if: forgejo.event_name == 'pull_request_target' && contains(matrix.platform.name, 'win') - name: Build AppImage - if: forgejo.event_name == 'pull_request' && contains(matrix.platform.name, 'linux') + if: forgejo.event_name == 'pull_request_target' && contains(matrix.platform.name, 'linux') run: | chmod +x ./publish/Ryujinx ./publish/Ryujinx.sh @@ -134,7 +134,7 @@ jobs: - name: Upload Ryujinx AppImage artifact uses: actions/upload-artifact@v5 - if: forgejo.event_name == 'pull_request' && contains(matrix.platform.name, 'linux') + if: forgejo.event_name == 'pull_request_target' && contains(matrix.platform.name, 'linux') with: name: ryujinx-${{ matrix.configuration }}-${{ steps.version_info.outputs.result }}+${{ steps.version_info.outputs.git_short_hash }}-${{ matrix.platform.zip_os_name }}-AppImage path: publish_appimage @@ -182,7 +182,7 @@ jobs: - name: Change config filename run: sed -r --in-place 's/\%\%RYUJINX_CONFIG_FILE_NAME\%\%/PRConfig\.json/g;' src/Ryujinx.Common/ReleaseInformation.cs shell: bash - if: forgejo.event_name == 'pull_request' + if: forgejo.event_name == 'pull_request_target' - name: 'Cache: ~/.nuget/packages' uses: actions/cache@v5 @@ -201,7 +201,7 @@ jobs: with: name: ryujinx-${{ matrix.configuration }}-${{ steps.version_info.outputs.result }}+${{ steps.version_info.outputs.git_short_hash }}-macos_universal path: "publish/*.tar.gz" - if: forgejo.event_name == 'pull_request' + if: forgejo.event_name == 'pull_request_target' post_comment: name: Post comment linking uploaded artifacts