mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
GHActions: move new 'opened' action to separate workflow (#63228)
* add new scenario to config * make workflow run on opened issues * revert-dont run on opened * action for newly opened issues * move new action config * remove opened from commands * change name * Update .github/workflows/issue-opened.yml ty! Co-authored-by: Timur Olzhabayev <timur.olzhabayev@grafana.com> * make comment clearer --------- Co-authored-by: Timur Olzhabayev <timur.olzhabayev@grafana.com>
This commit is contained in:
28
.github/workflows/issue-opened.yml
vendored
Normal file
28
.github/workflows/issue-opened.yml
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
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"
|
||||
Reference in New Issue
Block a user