mirror of
https://github.com/daeuniverse/dae.git
synced 2025-01-13 00:04:47 +07:00
ci(generate-changelogs.yml): generate auth token on the fly (#489)
This commit is contained in:
parent
abcf1ed6f4
commit
8f79d3b0fc
12
.github/workflows/generate-changelogs.yml
vendored
12
.github/workflows/generate-changelogs.yml
vendored
@ -23,6 +23,14 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Generate GitHub Auth Token
|
||||||
|
# https://github.com/tibdex/github-app-token
|
||||||
|
id: generate_token
|
||||||
|
uses: tibdex/github-app-token@v2
|
||||||
|
with:
|
||||||
|
app_id: ${{ secrets.GH_APP_ID }}
|
||||||
|
private_key: ${{ secrets.GH_APP_PRIVATE_KEY }}
|
||||||
|
|
||||||
- name: Generate release changelogs
|
- name: Generate release changelogs
|
||||||
uses: daeuniverse/changelogs-generator-action@main
|
uses: daeuniverse/changelogs-generator-action@main
|
||||||
id: changelog
|
id: changelog
|
||||||
@ -30,7 +38,7 @@ jobs:
|
|||||||
# https://github.com/daeuniverse/changelogs-generator-action
|
# https://github.com/daeuniverse/changelogs-generator-action
|
||||||
previousRelease: ${{ inputs.previous_release_tag }}
|
previousRelease: ${{ inputs.previous_release_tag }}
|
||||||
futureRelease: ${{ inputs.future_release_tag }}
|
futureRelease: ${{ inputs.future_release_tag }}
|
||||||
token: ${{ secrets.GH_TOKEN }}
|
token: ${{ steps.generate_token.outputs.token }}
|
||||||
|
|
||||||
- name: Print outputs
|
- name: Print outputs
|
||||||
shell: bash
|
shell: bash
|
||||||
@ -41,7 +49,7 @@ jobs:
|
|||||||
if: ${{ inputs.dry_run == 'false' }}
|
if: ${{ inputs.dry_run == 'false' }}
|
||||||
uses: dacbd/create-issue-action@main
|
uses: dacbd/create-issue-action@main
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GH_TOKEN }}
|
token: ${{ steps.generate_token.outputs.token }}
|
||||||
title: '[Release Changelogs] ${{ inputs.future_release_tag }}'
|
title: '[Release Changelogs] ${{ inputs.future_release_tag }}'
|
||||||
labels: automated-issue,release
|
labels: automated-issue,release
|
||||||
assignees: "sumire88,mzz2017,kunish,jschwinger233"
|
assignees: "sumire88,mzz2017,kunish,jschwinger233"
|
||||||
|
Loading…
Reference in New Issue
Block a user