PublishReleaseAndModule #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
name: PublishReleaseAndModule | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get changelog | |
id: get-changelog | |
uses: release-flow/keep-a-changelog-action@v2 | |
with: | |
command: query | |
version: unreleased | |
- uses: meeDamian/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
name: ${{ github.ref_name }} | |
draft: true | |
body: ${{ steps.get-changelog.outputs.release-notes }} | |
- name: Update changelog | |
uses: thomaseizinger/keep-a-changelog-new-release@v1 | |
with: | |
tag: ${{ github.ref }} | |
- name: Push changelog | |
run: | | |
git add CHANGELOG.md | |
git commit -m "docs: Update changelog for ${{ github.ref_name }}" | |
git push |