chore: Update to use Node20 version of Actions (#4787)

* chore: Update to use Node20 version of Actions

* CR: Add additional triggers to milestone checker

* CR: Remove use of third-party action
This commit is contained in:
Michael Li authored and GitHub committed 2024-05-17 13:01:54 -04:00
1 parent a2c529b9d1
commit 6eded679bc
6 files changed
+50 -66

No files matched your search

+4 -18
View File
@@ -5,7 +5,8 @@ name: Check Milestone
on:
pull_request:
types: [opened, synchronize, labeled, unlabeled]
# milestoned and demilestoned are supported even if IDE is complaining
types: [opened, synchronize, labeled, unlabeled, milestoned, demilestoned ]
# Runs on PRs to main and release branches
branches:
- main
@@ -22,20 +23,5 @@ jobs:
if: contains(github.event.pull_request.labels.*.name, 'pr/no-milestone') != true
runs-on: ${{ fromJSON(vars.RUNNER) }}
steps:
- name: Checkout Actions
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
repository: "grafana/grafana-github-actions"
path: ./actions
ref: be89ad434792280ebaa4d982ac72ba548b6f7095
- name: Set up Node.js
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: '16.x'
- name: Install Actions
run: npm install --production --prefix ./actions
- name: Run PR Checks
uses: ./actions/pr-checks
with:
token: ${{ secrets.GITHUB_TOKEN }}
configPath: configs/milestone-check
- name: Check milestone
run: ${{ github.event.pull_request.milestone != null }}