diff --git a/.github/workflows/release-notification-pr-opened.yml b/.github/workflows/release-notification-pr-opened.yml index b86e0ba..ebed71e 100644 --- a/.github/workflows/release-notification-pr-opened.yml +++ b/.github/workflows/release-notification-pr-opened.yml @@ -2,11 +2,11 @@ name: Release Notification on PR Opened on: pull_request: - types: [opened, reopened] + branches: + - 'release-*' jobs: notify: - if: startsWith(github.event.pull_request.head.ref, 'release-') runs-on: ubuntu-latest steps: - name: Install jq diff --git a/.github/workflows/release-notification-pr-synchronize.yml b/.github/workflows/release-notification-pr-synchronize.yml index e6bc75e..0347474 100644 --- a/.github/workflows/release-notification-pr-synchronize.yml +++ b/.github/workflows/release-notification-pr-synchronize.yml @@ -2,11 +2,12 @@ name: Release Notification on PR Updated on: pull_request: - types: [synchronize] + branches: + - 'release-*' jobs: notify: - if: startsWith(github.event.pull_request.head.ref, 'release-') + if: github.event.action == 'synchronize' runs-on: ubuntu-latest steps: - name: Install jq