forked from daeuniverse/daed-1
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: introduce generate-changelogs workflow (daeuniverse#104)
* chore(package.json): bump up version to v0.1.0 * ci(prerelease): demise tag-based trigger; use distpatch trigger instead * ci(changelogs): add generate-changelogs workflow * ci(changelogs): demise push trigger; not needed * chore: add line-breaker * fix: hopefully fix everything needed before merging to main stream --------- Co-authored-by: dae-bot[bot] <136105375+dae-bot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
dc1521c
commit 28acd26
Showing
3 changed files
with
50 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Generate Changelogs | ||
run-name: 'chore(release): generate changelogs for ${{ inputs.previous_release_tag }}..${{ inputs.future_release_tag }}' | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
previous_release_tag: | ||
required: true | ||
description: previous release tag | ||
future_release_tag: | ||
required: true | ||
description: future release tag | ||
|
||
jobs: | ||
build: | ||
name: Generate changelogs | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Generate release changelogs | ||
uses: daeuniverse/changelogs-generator-action@main | ||
id: changelog | ||
with: | ||
# https://github.com/daeuniverse/changelogs-generator-action | ||
previousRelease: ${{ inputs.previous_release_tag }} | ||
futureRelease: ${{ inputs.future_release_tag }} | ||
token: ${{ secrets.GH_TOKEN }} | ||
|
||
- name: Print outputs | ||
shell: bash | ||
run: | | ||
echo "${{ steps.changelog.outputs.changelogs }}" | ||
- name: Create an issue with proposed changelogs | ||
uses: dacbd/create-issue-action@main | ||
with: | ||
token: ${{ secrets.GH_TOKEN }} | ||
title: '[Release Changelogs] ${{ inputs.future_release_tag }}' | ||
labels: automated-issue,release | ||
assignees: daebot | ||
body: | | ||
${{ steps.changelog.outputs.changelogs }} |
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
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