[v11.1.x] CI: fix changelog repo null (#90966)
CI: fix changelog repo null (#90960)
* give secrets when running changelog action
* i guess secrets don't have types
(cherry picked from commit d4304b59ec)
Co-authored-by: Kevin Minehart <5140827+kminehart@users.noreply.github.com>
This commit is contained in:
co-authored by
Kevin Minehart
parent
8a219d5d18
commit
8a8679fc4e
@@ -18,6 +18,12 @@ on:
|
|||||||
required: false
|
required: false
|
||||||
default: false
|
default: false
|
||||||
type: boolean
|
type: boolean
|
||||||
|
secrets:
|
||||||
|
GRAFANA_DELIVERY_BOT_APP_ID:
|
||||||
|
required: true
|
||||||
|
GRAFANA_DELIVERY_BOT_APP_PEM:
|
||||||
|
required: true
|
||||||
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
version:
|
version:
|
||||||
@@ -47,6 +53,12 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
|
- name: "Generate token"
|
||||||
|
id: generate_token
|
||||||
|
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92
|
||||||
|
with:
|
||||||
|
app_id: ${{ secrets.GRAFANA_DELIVERY_BOT_APP_ID }}
|
||||||
|
private_key: ${{ secrets.GRAFANA_DELIVERY_BOT_APP_PEM }}
|
||||||
- name: "Checkout Grafana repo"
|
- name: "Checkout Grafana repo"
|
||||||
uses: "actions/checkout@v4"
|
uses: "actions/checkout@v4"
|
||||||
with:
|
with:
|
||||||
@@ -66,7 +78,7 @@ jobs:
|
|||||||
id: changelog
|
id: changelog
|
||||||
uses: ./.github/workflows/actions/changelog
|
uses: ./.github/workflows/actions/changelog
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ steps.generate_token.outputs.token }}
|
||||||
target: v${{ inputs.version }}
|
target: v${{ inputs.version }}
|
||||||
output_file: changelog_items.md
|
output_file: changelog_items.md
|
||||||
- name: "Patch CHANGELOG.md"
|
- name: "Patch CHANGELOG.md"
|
||||||
|
|||||||
@@ -42,11 +42,20 @@ jobs:
|
|||||||
latest: ${{ inputs.latest }}
|
latest: ${{ inputs.latest }}
|
||||||
dry_run: ${{ inputs.dry_run }}
|
dry_run: ${{ inputs.dry_run }}
|
||||||
target: main
|
target: main
|
||||||
|
secrets:
|
||||||
|
GRAFANA_DELIVERY_BOT_APP_ID: ${{ secrets.GRAFANA_DELIVERY_BOT_APP_ID }}
|
||||||
|
GRAFANA_DELIVERY_BOT_APP_PEM: ${{ secrets.GRAFANA_DELIVERY_BOT_APP_PEM }}
|
||||||
create-prs:
|
create-prs:
|
||||||
name: Create Release PR
|
name: Create Release PR
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.repository == 'grafana/grafana'
|
if: github.repository == 'grafana/grafana'
|
||||||
steps:
|
steps:
|
||||||
|
- name: Generate bot token
|
||||||
|
id: generate_token
|
||||||
|
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92
|
||||||
|
with:
|
||||||
|
app_id: ${{ secrets.GRAFANA_DELIVERY_BOT_APP_ID }}
|
||||||
|
private_key: ${{ secrets.GRAFANA_DELIVERY_BOT_APP_PEM }}
|
||||||
- name: Checkout Grafana
|
- name: Checkout Grafana
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
@@ -66,7 +75,7 @@ jobs:
|
|||||||
id: changelog
|
id: changelog
|
||||||
uses: ./.github/workflows/actions/changelog
|
uses: ./.github/workflows/actions/changelog
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ steps.generate_token.outputs.token }}
|
||||||
target: v${{ inputs.version }}
|
target: v${{ inputs.version }}
|
||||||
output_file: changelog_items.md
|
output_file: changelog_items.md
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user