Skip to content

chore(release): generate changelogs for v0.3.2..v0.3.3 #73

chore(release): generate changelogs for v0.3.2..v0.3.3

chore(release): generate changelogs for v0.3.2..v0.3.3 #73

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
dry_run:
required: true
description: dry run
default: true
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
if: ${{ inputs.dry_run == 'false' }}
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 }}