grafana/.github/workflows/pr-commands.yml
Jack Baldry 96956d8252
Trigger PR commands on labeled events (#64377)
This should enable adding PRs to organization project boards similar
to with issues.

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
2023-03-08 09:00:58 +00:00

28 lines
717 B
YAML

name: PR automation
on:
pull_request_target:
types:
- labeled
- opened
- synchronize
concurrency:
group: pr-commands-${{ github.event.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
- name: Run Commands
uses: ./actions/commands
with:
metricsWriteAPIKey: ${{secrets.GRAFANA_MISC_STATS_API_KEY}}
token: ${{secrets.GH_BOT_ACCESS_TOKEN}}
configPath: pr-commands