mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 13:09:22 -06:00
15a85686c2
* Update bump-version.yml * Fix secret * [REVERTME] Remove check * Test without grafana-delivery-bot prefix * Check if token exists * Cleanup bump-version * Update gh actions to use app key
34 lines
1.3 KiB
YAML
34 lines
1.3 KiB
YAML
name: Update changelog
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
version:
|
|
required: true
|
|
description: 'Needs to match, exactly, the name of a milestone. The version to be released please respect: major.minor.patch, major.minor.patch-preview or major.minor.patch-preview<number> format. example: 7.4.3, 7.4.3-preview or 7.4.3-preview1'
|
|
skip_pr:
|
|
required: false
|
|
default: "0"
|
|
skip_community_post:
|
|
required: false
|
|
default: "0"
|
|
jobs:
|
|
main:
|
|
runs-on: ubuntu-latest
|
|
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: Run update changelog (manually invoked)
|
|
uses: grafana/grafana-github-actions-go/update-changelog@main
|
|
with:
|
|
token: ${{ steps.generate_token.outputs.token }}
|
|
version: ${{ inputs.version }}
|
|
metrics_api_key: ${{ secrets.GRAFANA_MISC_STATS_API_KEY }}
|
|
community_api_key: ${{ secrets.GRAFANABOT_FORUM_KEY }}
|
|
community_api_username: grafanabot
|
|
skip_pr: ${{ inputs.skip_pr }}
|
|
skip_community_post: ${{ inputs.skip_community_post }}
|