2020-10-07 02:33:05 -05:00
|
|
|
name: Run commands when issues are labeled or comments added
|
|
|
|
on:
|
|
|
|
issues:
|
2023-02-10 08:52:24 -06:00
|
|
|
types: [labeled, unlabeled]
|
2020-10-07 02:33:05 -05:00
|
|
|
issue_comment:
|
|
|
|
types: [created]
|
2022-02-10 07:01:18 -06:00
|
|
|
concurrency:
|
|
|
|
group: issue-commands-${{ github.event.issue.number }}
|
2020-10-07 02:33:05 -05:00
|
|
|
jobs:
|
|
|
|
main:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout Actions
|
2022-04-08 03:26:30 -05:00
|
|
|
uses: actions/checkout@v3
|
2020-10-07 02:33:05 -05:00
|
|
|
with:
|
|
|
|
repository: "grafana/grafana-github-actions"
|
|
|
|
path: ./actions
|
|
|
|
ref: main
|
|
|
|
- name: Install Actions
|
|
|
|
run: npm install --production --prefix ./actions
|
|
|
|
- name: Run Commands
|
|
|
|
uses: ./actions/commands
|
|
|
|
with:
|
2020-10-08 09:06:24 -05:00
|
|
|
metricsWriteAPIKey: ${{secrets.GRAFANA_MISC_STATS_API_KEY}}
|
2023-02-07 09:08:40 -06:00
|
|
|
token: ${{secrets.ISSUE_COMMANDS_TOKEN}}
|
2020-10-26 13:43:58 -05:00
|
|
|
configPath: commands
|