Update develop-workflow.yml

This commit is contained in:
Robbie Davis 2024-03-17 14:46:02 -04:00 committed by GitHub
parent 3186be06e3
commit 7c586a1c41
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,7 +2,7 @@ name: Nightly Workflow
on:
push:
branches: ['!release/**']
branches: ['develop', '!release/**']
pull_request:
branches: [ 'develop', '!release/**' ]
types: [ closed, synchronize ]
@ -21,7 +21,7 @@ jobs:
build:
name: Upload Kavita.Common for Version Bump
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true && !contains(github.head_ref, 'release')
if: github.event.pull_request.merged == true && ( github.event.pull_request.head.ref == 'develop' || !contains(github.event.pull_request.head.ref, 'release') )
steps:
- name: Checkout Repo
uses: actions/checkout@v3
@ -37,7 +37,7 @@ jobs:
name: Bump version
needs: [ build ]
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true && !contains(github.head_ref, 'release')
if: github.event.pull_request.merged == true && ( github.event.pull_request.head.ref == 'develop' || !contains(github.event.pull_request.head.ref, 'release') )
steps:
- uses: actions/checkout@v3
with:
@ -59,7 +59,7 @@ jobs:
name: Build Nightly Docker
needs: [ build, version ]
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true && !contains(github.head_ref, 'release')
if: github.event.pull_request.merged == true && ( github.event.pull_request.head.ref == 'develop' || !contains(github.event.pull_request.head.ref, 'release') )
permissions:
packages: write
contents: read