Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add generate-changelogs workflow #159

Merged
merged 2 commits into from
Jun 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/generate-changelogs.yml
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 }}
2 changes: 2 additions & 0 deletions CHANGELOGS.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ curl --silent "https://api.github.com/repos/daeuniverse/dae/releases" | jq -r '.

## Releases

<!-- BEGIN NEW TOC ENTRY -->
- [0.2.0rc2 (Pre-release)](#020rc2-pre-release)
- [0.2.0rc1 (Pre-release)](#020rc1-pre-release)
- [0.1.10.p1 (Current)](#0110p1-current)
Expand All @@ -27,6 +28,7 @@ curl --silent "https://api.github.com/repos/daeuniverse/dae/releases" | jq -r '.
- [0.1.2](#012)
- [0.1.1](#011)
- [0.1.0](#010)
<!-- BEGIN NEW CHANGELOGS -->

### 0.2.0rc2 (Pre-release)

Expand Down