Skip to content

Commit

Permalink
Update update.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Helldar authored Mar 11, 2022
1 parent 0e51b99 commit 9344f34
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ on:
push:
branches:
- main
tags:
- "*"
release:
types:
- released

jobs:
update:
Expand Down Expand Up @@ -93,10 +94,11 @@ jobs:
- name: Update changelog
uses: stefanzweifel/changelog-updater-action@v1
if: success() && startsWith(github.ref, 'refs/tags/')
if: success() && github.event_name == 'release'
with:
latest-version: ${{ github.event.release.tag_name }}
release-date: ${{ steps.release_date.outputs.date }}
release-notes: ${{ github.event.release.body }}
latest-version: ${{ github.event.release.tag_name }}
compare-url-target-revision: ${{ github.event.release.target_commitish }}
path-to-changelog: docs/changelog/10.x.md

Expand Down

0 comments on commit 9344f34

Please sign in to comment.