fix changelog (#7159)

* cool

* seperate changelog

* should be fine

---------

Co-authored-by: gatzjames <jamesgatzos@gmail.com>
This commit is contained in:
Jack Kavanagh 2024-03-12 16:53:41 +01:00 committed by GitHub
parent 38f1dcead5
commit c50e6aeb4a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 31 additions and 11 deletions

28
.github/workflows/changelog.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: Update changelog
on:
push:
tags:
- core@(\d+\.\d+\.\d+)(?:-(alpha|beta)\.\d+)?
jobs:
changelog:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Update CHANGELOG
id: changelog
uses: requarks/changelog-action@v1
with:
token: ${{ secrets.RELEASE_GH_TOKEN }}
tag: ${{ github.ref_name }}
- name: Commit CHANGELOG.md
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: develop
commit_message: 'docs: update CHANGELOG.md for ${{ github.ref_name }} [skip ci]'
file_pattern: CHANGELOG.md

View File

@ -161,6 +161,8 @@ jobs:
uses: kt3k/update-pr-description@v2.0.0
with:
pr_body: |
**WARNING: Do not merge this PR. This is an automated release PR. It should be released using the "Publish" workflow.**
Download release artifacts [here](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})
## Steps for Publish:

View File

@ -222,16 +222,6 @@ jobs:
with:
username: ${{ (github.event_name == 'workflow_dispatch' && github.actor) || 'insomnia-infra' }}
- name: Update CHANGELOG
id: changelog
uses: requarks/changelog-action@v1
with:
token: ${{ secrets.RELEASE_GH_TOKEN }}
tag: ${{ env.RELEASE_CORE_TAG }}
- name: Git Commit Changelog
run: git commit -am "update CHANGELOG.md for ${{ env.RELEASE_VERSION }} [skip ci]"
- name: Merge git branch into develop
run: |
remote_repo="https://${GITHUB_ACTOR}:${RELEASE_GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"

View File

@ -13,7 +13,7 @@ on:
- stable
version:
required: false
description: force version of the release (e.g. 2022.1.0)
description: force version of the release (e.g. 9.0.0) leave blank to increment automatically
jobs:
setup-release-branch: