chore: do not always trigger upload on PR #912

Co-authored-by: bobo liu <7552030+fakeboboliu@users.noreply.github.com>
This commit is contained in:
Larvan2 2023-12-16 22:03:32 +08:00
parent 78e5d3229e
commit 5b23b979df

View File

@ -15,7 +15,7 @@ on:
- Alpha
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
@ -234,7 +234,7 @@ jobs:
Upload-Prerelease:
permissions: write-all
if: ${{ github.ref_type=='branch' && github.event_name != 'pull_request' }}
if: ${{ github.ref_type == 'branch' && !startsWith(github.event_name, 'pull_request') }}
needs: [Build]
runs-on: ubuntu-latest
steps:
@ -310,7 +310,7 @@ jobs:
generate_release_notes: true
Docker:
if: ${{ github.event_name != 'pull_request' }}
if: ${{ !startsWith(github.event_name, 'pull_request') }}
permissions: write-all
needs: [Build]
runs-on: ubuntu-latest