| 1 | name: "Publish Changelog" |
| 2 | on: |
| 3 | release: |
| 4 | types: [published] |
| 5 | |
| 6 | workflow_dispatch: |
| 7 | inputs: |
| 8 | branch: |
| 9 | description: "The branch to target" |
| 10 | required: false |
| 11 | |
| 12 | jobs: |
| 13 | publish_changelog: |
| 14 | runs-on: ubuntu-latest |
| 15 | environment: release |
| 16 | steps: |
| 17 | - uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 |
| 18 | |
| 19 | - uses: actions/create-github-app-token@v2 |
| 20 | id: app-token |
| 21 | with: |
| 22 | app-id: ${{ vars.APP_ID }} |
| 23 | private-key: ${{ secrets.APP_PRIVATE_KEY }} |
| 24 | |
| 25 | - name: Publish changelog |
| 26 | id: publish-changelog |
| 27 | uses: jupyter-server/jupyter_releaser/.github/actions/publish-changelog@v2 |
| 28 | with: |
| 29 | token: ${{ steps.app-token.outputs.token }} |
| 30 | branch: ${{ github.event.inputs.branch }} |
| 31 | |
| 32 | - name: "** Next Step **" |
| 33 | run: | |
| 34 | echo "Merge the changelog update PR: ${{ steps.publish-changelog.outputs.pr_url }}" |