Skip to content

Commit 425be11

Browse files
authored
Fix release process (#1736)
* Update changelog generator and make read file conditional * Upgrade release drafter to v6
1 parent b04d95b commit 425be11

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/release-drafter.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ on:
55
# branches to consider in the event; optional, defaults to all
66
branches:
77
- $default-branch
8+
- main
89

910
jobs:
1011
update_release_draft:
1112
runs-on: ubuntu-latest
1213
steps:
1314
# Drafts your next Release notes as Pull Requests are merged into "master"
14-
- uses: release-drafter/release-drafter@v5
15+
- uses: release-drafter/release-drafter@v6
1516
with:
1617
config-name: release-drafter.yml
1718
env:

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
# generate a github release
2929
- name: Generate release changelog
3030
id: changelog
31-
uses: heinrichreimer/github-changelog-generator-action@v2.1.1
31+
uses: heinrichreimer/github-changelog-generator-action@v2.4
3232
with:
3333
token: ${{ secrets.GITHUB_TOKEN }}
3434
cacheFile: '.github-changelog-cache'
@@ -42,6 +42,7 @@ jobs:
4242
output: LATEST_RELEASE.md
4343
- name: Read latest_release.md
4444
id: release_changelog
45+
if: ${{ hashFiles('LATEST_RELEASE.md') != '' }}
4546
uses: juliangruber/read-file-action@v1
4647
with:
4748
path: ./LATEST_RELEASE.md

0 commit comments

Comments
 (0)