From 21413a0dddfe06bf1c430eabe270a0db9e7709ef Mon Sep 17 00:00:00 2001 From: Roman Demidov Date: Wed, 3 Jul 2024 11:45:30 +0300 Subject: [PATCH] Automate changelog creation --- .github/workflows/init-changelogs.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/init-changelogs.yaml b/.github/workflows/init-changelogs.yaml index b545c81a2..208919f31 100644 --- a/.github/workflows/init-changelogs.yaml +++ b/.github/workflows/init-changelogs.yaml @@ -1,12 +1,12 @@ name: Initialize changelog files -on: workflow_dispatch +on: create jobs: changelogs: if: >- - ${{ contains(github.ref, 'refs/heads/hotfix/v') || - contains(github.ref, 'refs/heads/release/v') }} + ${{ startsWith(github.ref, 'refs/heads/hotfix/v') || + startsWith(github.ref, 'refs/heads/release/v') }} runs-on: ubuntu-latest steps: