Merge pull request #5675 from LibreSign/fix/run-only-into-stable-branches

fix: run only into stable branches
This commit is contained in:
Vitor Mattos 2025-10-28 15:35:29 -03:00 committed by GitHub
commit 4e946815c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,13 +12,19 @@ on:
branches:
- stable*
pull_request_target:
branches:
- stable*
types: [closed]
jobs:
update_release_draft:
if: >
github.event_name == 'push' ||
(github.event_name == 'pull_request_target' && github.event.pull_request.merged == true)
(github.event_name == 'push' && startsWith(github.ref, 'refs/heads/stable')) ||
(
github.event_name == 'pull_request_target' &&
github.event.pull_request.merged == true &&
startsWith(github.event.pull_request.base.ref, 'stable')
)
runs-on: ubuntu-latest
steps: