2020-11-16 14:34:19 -06:00
name : Update changelog
on :
workflow_dispatch :
inputs :
version :
2021-12-21 07:34:05 -06:00
required : true
2022-09-28 03:52:42 -05:00
description: 'Needs to match, exactly, the name of a milestone. The version to be released please respect: major.minor.patch or major.minor.patch-beta<number> format. example : 7.4 .3 or 7.4.3-beta1'
2021-12-20 07:16:22 -06:00
workflow_call :
inputs :
version_call :
2022-09-28 03:52:42 -05:00
description: 'Needs to match, exactly, the name of a milestone. The version to be released please respect: major.minor.patch or major.minor.patch-beta<number> format. example : 7.4 .3 or 7.4.3-beta1'
2021-12-20 07:16:22 -06:00
required : true
2021-12-21 07:34:05 -06:00
type : string
secrets :
token :
required : true
metricsWriteAPIKey :
required : true
2020-11-16 14:34:19 -06:00
jobs :
main :
runs-on : ubuntu-latest
steps :
- name : Checkout Actions
2022-04-08 03:26:30 -05:00
uses : actions/checkout@v3
2020-11-16 14:34:19 -06:00
with :
repository : "grafana/grafana-github-actions"
path : ./actions
2021-12-21 07:34:05 -06:00
ref : main
2020-11-16 14:34:19 -06:00
- name : Install Actions
run : npm install --production --prefix ./actions
2021-12-20 07:16:22 -06:00
- name : Run update changelog (manually invoked)
if : ${{ github.event.inputs.version != '' }}
uses : ./actions/update-changelog
with :
2021-12-21 07:34:05 -06:00
token : ${{ secrets.GH_BOT_ACCESS_TOKEN }}
metricsWriteAPIKey : ${{ secrets.GRAFANA_MISC_STATS_API_KEY }}
2021-12-20 07:16:22 -06:00
- name : Run update changelog (workflow invoked)
2022-10-04 01:55:13 -05:00
if : ${{ inputs.version != '' }}
2020-11-16 14:34:19 -06:00
uses : ./actions/update-changelog
with :
2022-10-04 01:55:13 -05:00
version_call : ${{ inputs.version }}
2021-12-21 07:34:05 -06:00
token : ${{ secrets.token }}
metricsWriteAPIKey : ${{ secrets.metricsWriteAPIKey }}