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
|
2020-11-16 14:34:19 -06:00
|
|
|
description: Needs to match, exactly, the name of a milestone
|
2021-12-20 07:16:22 -06:00
|
|
|
workflow_call:
|
|
|
|
inputs:
|
|
|
|
version_call:
|
|
|
|
description: Needs to match, exactly, the name of a milestone
|
|
|
|
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
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
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)
|
|
|
|
if: ${{ inputs.version_call != '' }}
|
2020-11-16 14:34:19 -06:00
|
|
|
uses: ./actions/update-changelog
|
|
|
|
with:
|
2021-12-21 07:34:05 -06:00
|
|
|
version_call: ${{ inputs.version_call }}
|
|
|
|
token: ${{ secrets.token }}
|
|
|
|
metricsWriteAPIKey: ${{ secrets.metricsWriteAPIKey }}
|