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 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: "yqlbu,mzz2017,kunish" body: | ${{ steps.changelog.outputs.changelogs }}