mirror of
https://github.com/ps5-linux/ps5-linux-image.git
synced 2026-07-15 21:42:27 +00:00
CI: no releases for pr runs
This commit is contained in:
6
.github/workflows/build-image.yml
vendored
6
.github/workflows/build-image.yml
vendored
@@ -94,7 +94,7 @@ jobs:
|
|||||||
> image/output/ps5-${{ matrix.distro }}.img.xz
|
> image/output/ps5-${{ matrix.distro }}.img.xz
|
||||||
|
|
||||||
- name: Upload to R2
|
- name: Upload to R2
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request' && github.event_name != 'pull_request_target'
|
||||||
env:
|
env:
|
||||||
RCLONE_CONFIG_R2_TYPE: s3
|
RCLONE_CONFIG_R2_TYPE: s3
|
||||||
RCLONE_CONFIG_R2_PROVIDER: Cloudflare
|
RCLONE_CONFIG_R2_PROVIDER: Cloudflare
|
||||||
@@ -123,7 +123,7 @@ jobs:
|
|||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
|
||||||
- name: Upload to remote
|
- name: Upload to remote
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request' && github.event_name != 'pull_request_target'
|
||||||
env:
|
env:
|
||||||
SSH_KEY: ${{ secrets.REMOTE_SSH_KEY }}
|
SSH_KEY: ${{ secrets.REMOTE_SSH_KEY }}
|
||||||
SSH_CONFIG: ${{ secrets.REMOTE_SSH_CONFIG }}
|
SSH_CONFIG: ${{ secrets.REMOTE_SSH_CONFIG }}
|
||||||
@@ -146,7 +146,7 @@ jobs:
|
|||||||
release:
|
release:
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request' && github.event_name != 'pull_request_target'
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
6
.github/workflows/trigger-builds.yml
vendored
6
.github/workflows/trigger-builds.yml
vendored
@@ -10,11 +10,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
image:
|
image:
|
||||||
# Only run on push, manual dispatch, OR when the 'run-ci' label is added to a PR
|
if: github.event.label.name == 'run-ci' || github.event_name != 'pull_request_target'
|
||||||
if: |
|
|
||||||
github.event_name == 'workflow_dispatch' ||
|
|
||||||
github.event_name == 'push' ||
|
|
||||||
(github.event_name == 'pull_request_target' && github.event.label.name == 'run-ci')
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
uses: ./.github/workflows/build-image.yml
|
uses: ./.github/workflows/build-image.yml
|
||||||
|
|||||||
Reference in New Issue
Block a user