Skip to content

Commit cce4fab

Browse files
sradcoAI Assistantcursoragent
committed
Upgrade all GitHub Actions to Node.js
24-compatible versions Node.js 20 is deprecated on GitHub Actions runners and will be forced to Node.js 24 on June 16, 2026 and fully removed on September 16, 2026. Upgrade all workflow action references to their latest major versions with native Node.js 24 support: - actions/checkout: v2/v3/v4 -> v6 - actions/setup-go: v2/v4/v5 -> v6 - actions/setup-python: v2 -> v6 - peter-evans/create-pull-request: v3 -> v8 - DavidAnson/markdownlint-cli2-action: v16 -> v23 - docker/setup-buildx-action: v3 -> v4 - docker/build-push-action: v5 -> v7 Replace s0/git-publish-subdir-action (unmaintained, still on Node.js 20 with no update planned) with plain git commands in the publish workflow. Signed-off-by: Shirly Radco <sradco@redhat.com> Co-authored-by: AI Assistant <noreply@cursor.com> Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 7c5cdb3 commit cce4fab

7 files changed

Lines changed: 29 additions & 23 deletions

File tree

.github/workflows/perses-dashboards.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ jobs:
2828
name: Verify Perses Dashboards
2929
runs-on: ubuntu-latest
3030
steps:
31-
- uses: actions/checkout@v4
31+
- uses: actions/checkout@v6
3232

33-
- uses: actions/setup-go@v5
33+
- uses: actions/setup-go@v6
3434
with:
3535
go-version-file: go.mod
3636

.github/workflows/prom-metrics-linter.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout code
16-
uses: actions/checkout@v3
16+
uses: actions/checkout@v6
1717

1818
- name: Set up Docker Buildx
19-
uses: docker/setup-buildx-action@v3.0.0
19+
uses: docker/setup-buildx-action@v4
2020

2121
- name: Login to quay.io
2222
run: docker login -u="${{ secrets.QUAY_USER }}" -p="${{ secrets.QUAY_PASSWORD }}" quay.io
2323

2424
- name: Build and push the Docker image
25-
uses: docker/build-push-action@v5.3.0
25+
uses: docker/build-push-action@v7
2626
with:
2727
context: test/metrics/prom-metrics-linter
2828
push: true

.github/workflows/publish.yaml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,19 @@ on:
88
# Allows you to run this workflow manually from the Actions tab
99
workflow_dispatch:
1010

11+
permissions:
12+
contents: write
13+
1114
jobs:
1215
build:
1316
runs-on: ubuntu-latest
1417
name: Build and Push
1518
steps:
1619
- name: git-checkout
17-
uses: actions/checkout@v2
20+
uses: actions/checkout@v6
1821

1922
- name: Set up Python 3.8
20-
uses: actions/setup-python@v2
23+
uses: actions/setup-python@v6
2124
with:
2225
python-version: 3.8
2326

@@ -33,10 +36,13 @@ jobs:
3336
run: tools/ghpages/venv/bin/python tools/ghpages/main.py --config_file docs/ghpages.json --output_dir dist/
3437

3538
- name: Push
36-
uses: s0/git-publish-subdir-action@develop
37-
env:
38-
REPO: self
39-
BRANCH: ghpages
40-
FOLDER: dist/
41-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42-
MESSAGE: "Build: ({sha}) {msg}"
39+
run: |
40+
SHORT_SHA=$(echo "${{ github.sha }}" | cut -c1-7)
41+
COMMIT_MSG=$(git log -1 --format='%s')
42+
cd dist/
43+
git init
44+
git config user.name "github-actions[bot]"
45+
git config user.email "github-actions[bot]@users.noreply.github.com"
46+
git add .
47+
git commit -m "Build: (${SHORT_SHA}) ${COMMIT_MSG}"
48+
git push --force "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git" HEAD:ghpages

.github/workflows/runbook-preview.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v6
1919
with:
2020
fetch-depth: 0
2121

22-
- uses: actions/setup-go@v4
22+
- uses: actions/setup-go@v6
2323
with:
2424
go-version: '1.22'
2525

.github/workflows/runbook_sync_downstream.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v6
1717

18-
- uses: actions/setup-go@v2
18+
- uses: actions/setup-go@v6
1919
with:
2020
go-version: '1.22'
2121

.github/workflows/sanity.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v6
1717

18-
- uses: DavidAnson/markdownlint-cli2-action@v16
18+
- uses: DavidAnson/markdownlint-cli2-action@v23
1919
with:
2020
globs: 'docs/*runbooks/*.md'

.github/workflows/update_metrics_docs.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v6
1515

16-
- uses: actions/setup-go@v2
16+
- uses: actions/setup-go@v6
1717
with:
1818
go-version: '1.17'
1919

2020
- name: Generate new metrics documentation
2121
id: generate_metrics_docs
2222
run: CONFIG_FILE=./tools/metricsdocs/config make metricsdocs
2323

24-
- uses: peter-evans/create-pull-request@v3
24+
- uses: peter-evans/create-pull-request@v8
2525
with:
2626
title: Update metrics documentation
2727
commit-message: Update metrics documentation

0 commit comments

Comments
 (0)