2021-12-14 06:54:19 -06:00
|
|
|
name: Remove milestone
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
version:
|
|
|
|
required: true
|
|
|
|
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
|
|
|
|
type: string
|
2021-12-21 07:34:05 -06:00
|
|
|
secrets:
|
|
|
|
token:
|
|
|
|
required: true
|
2021-12-14 06:54: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
|
2021-12-14 06:54:19 -06:00
|
|
|
with:
|
|
|
|
repository: "grafana/grafana-github-actions"
|
|
|
|
path: ./actions
|
|
|
|
ref: main
|
|
|
|
- name: Install Actions
|
|
|
|
run: npm install --production --prefix ./actions
|
2021-12-20 07:16:22 -06:00
|
|
|
- name: Remove milestone from open issues (manually invoked)
|
|
|
|
if: ${{ github.event.inputs.version != '' }}
|
|
|
|
uses: ./actions/remove-milestone
|
|
|
|
with:
|
2021-12-21 07:34:05 -06:00
|
|
|
token: ${{ secrets.GH_BOT_ACCESS_TOKEN }}
|
2021-12-20 07:16:22 -06:00
|
|
|
- name: Remove milestone from open issues (workflow invoked)
|
|
|
|
if: ${{ inputs.version_call != '' }}
|
2021-12-14 06:54:19 -06:00
|
|
|
uses: ./actions/remove-milestone
|
|
|
|
with:
|
2021-12-21 07:34:05 -06:00
|
|
|
version_call: ${{ inputs.version_call }}
|
|
|
|
token: ${{ secrets.token }}
|