diff --git a/.github/workflows/generate-changelogs.yml b/.github/workflows/generate-changelogs.yml new file mode 100644 index 000000000..4376549e1 --- /dev/null +++ b/.github/workflows/generate-changelogs.yml @@ -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 }} diff --git a/CHANGELOGS.md b/CHANGELOGS.md index 954ddd102..2db1dfd07 100644 --- a/CHANGELOGS.md +++ b/CHANGELOGS.md @@ -12,6 +12,7 @@ curl --silent "https://api.github.com/repos/daeuniverse/dae/releases" | jq -r '. ## Releases + - [0.2.0rc2 (Pre-release)](#020rc2-pre-release) - [0.2.0rc1 (Pre-release)](#020rc1-pre-release) - [0.1.10.p1 (Current)](#0110p1-current) @@ -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) + ### 0.2.0rc2 (Pre-release)