mirror of
https://github.com/grafana/grafana.git
synced 2025-02-16 18:34:52 -06:00
29 lines
834 B
YAML
29 lines
834 B
YAML
|
name: Run commands when issues are opened
|
||
|
on:
|
||
|
issues:
|
||
|
types: [opened]
|
||
|
concurrency:
|
||
|
group: issue-opened-${{ github.event.issue.number }}
|
||
|
jobs:
|
||
|
main:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- name: Checkout Actions
|
||
|
uses: actions/checkout@v3
|
||
|
with:
|
||
|
repository: "grafana/grafana-github-actions"
|
||
|
path: ./actions
|
||
|
ref: main
|
||
|
- name: Install Actions
|
||
|
run: npm install --production --prefix ./actions
|
||
|
# give issue-openers a chance to add labels after submit
|
||
|
- name: Sleep for 2 minutes
|
||
|
run: sleep 2m
|
||
|
shell: bash
|
||
|
- name: Run Commands
|
||
|
uses: ./actions/commands
|
||
|
with:
|
||
|
metricsWriteAPIKey: ${{secrets.GRAFANA_MISC_STATS_API_KEY}}
|
||
|
token: ${{secrets.ISSUE_COMMANDS_TOKEN}}
|
||
|
configPath: "issue-opened"
|