From 766b6335b175f9896070dd227b8e3cb06f813684 Mon Sep 17 00:00:00 2001 From: ThibaultBee <37510686+ThibaultBee@users.noreply.github.com> Date: Tue, 20 Dec 2022 16:41:02 +0100 Subject: [PATCH] [skip ci] chore(ci): create draft release workflow is only triggered when CHANGELOG.md has been updated --- .github/workflows/create-release-from-changelog.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/create-release-from-changelog.yml b/.github/workflows/create-release-from-changelog.yml index d50688c..849218d 100644 --- a/.github/workflows/create-release-from-changelog.yml +++ b/.github/workflows/create-release-from-changelog.yml @@ -1,16 +1,18 @@ -name: Create draft release if needed +name: Create draft release from CHANGELOG.md + on: push: - branches: - - main + paths: + - 'CHANGELOG.md' + jobs: update-documentation: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Create draft release if needed - uses: apivideo/api.video-release-from-changelog-action@v0.0.1 + uses: apivideo/api.video-release-from-changelog-action@main with: github-auth-token: ${{ secrets.GITHUB_TOKEN }} prefix: v - \ No newline at end of file +