Skip to content

Commit

Permalink
ci: introduce generate-changelogs workflow (daeuniverse#104)
Browse files Browse the repository at this point in the history
* 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
piyoki and dae-prow[bot] authored Jun 24, 2023
1 parent dc1521c commit 28acd26
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 5 deletions.
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 }}
8 changes: 4 additions & 4 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ run-name: Publish prerelease ${{ github.ref_name }} by @${{ github.actor }}

on:
workflow_dispatch:
push:
tags:
- 'v*.*.*rc*'
- 'v*.*.*p*'
inputs:
tag:
type: string
required: true

jobs:
checkout-full-src:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "daed",
"private": true,
"version": "v0.0.1",
"version": "v0.1.0",
"license": "MIT",
"homepage": "https://daeuniverse.github.io/daed",
"repository": "https://github.com/daeuniverse/daed",
Expand Down

0 comments on commit 28acd26

Please sign in to comment.