CI: move workflows/actions to actions (#104711)
* move workflows/actions to actions
* rerun actions
* fix setup-go v5
* unpinned unnecessary pins
* update CODEOWONERS
* update CODEOWONERS
* remove remove-milestone from codeowners
* remove bad key
(cherry picked from commit 2436b4e097)
47 lines
998 B
YAML
47 lines
998 B
YAML
name: PR Checks
|
|
on:
|
|
pull_request_target:
|
|
types:
|
|
- opened
|
|
- reopened
|
|
- synchronize
|
|
- ready_for_review
|
|
- labeled
|
|
- unlabeled
|
|
- edited
|
|
- auto_merge_enabled
|
|
issues:
|
|
types:
|
|
- milestoned
|
|
- demilestoned
|
|
|
|
concurrency:
|
|
group: pr-checks-${{ github.event.number }}
|
|
|
|
permissions:
|
|
statuses: write
|
|
checks: write
|
|
actions: write
|
|
contents: read
|
|
pull-requests: read
|
|
|
|
jobs:
|
|
main:
|
|
runs-on: ubuntu-latest
|
|
if: github.event.pull_request.draft == false
|
|
steps:
|
|
- name: Checkout Actions
|
|
uses: actions/checkout@v4 # v4.2.2
|
|
with:
|
|
repository: "grafana/grafana-github-actions"
|
|
path: ./actions
|
|
ref: main
|
|
persist-credentials: false
|
|
- name: Install Actions
|
|
run: npm install --production --prefix ./actions
|
|
- name: Run PR Checks
|
|
uses: ./actions/pr-checks
|
|
with:
|
|
token: ${{secrets.GITHUB_TOKEN}}
|
|
configPath: pr-checks
|