fix: make possible to work when is coming from a fork

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
This commit is contained in:
Vitor Mattos 2025-10-28 14:20:39 -03:00
parent 3b915e6950
commit 79d201a337
No known key found for this signature in database
GPG key ID: 6FECE2AD4809003A

View file

@ -16,7 +16,10 @@ on:
jobs:
update_release_draft:
if: github.event.pull_request.merged == true || github.event_name == 'push'
if: >
(github.event_name == 'push' && startsWith(github.ref, 'refs/heads/main')) ||
(github.event_name == 'pull_request_target' && github.event.pull_request.merged == true)
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v6