Skip to content

Commit 1e75326

Browse files
tylerbutlerCopilot
andauthored
ci: update some actions to the latest version (#25857)
Updates the following actions to their latest versions: - actions/github-script - actions/labeler - actions/download-artifact - actions/upload-artifact - beatlabs/delete-old-branches-action - dawidd6/action-download-artifact - errata-ai/vale-action - Lehoczky/render-nunjucks-template-action - marocchino/sticky-pull-request-comment --------- Co-authored-by: Copilot <[email protected]>
1 parent 92111d1 commit 1e75326

15 files changed

+167
-113
lines changed

.github/labeler-areas.yml

Lines changed: 78 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -4,89 +4,129 @@
44
# see how this config file is used.
55

66
"area: build":
7-
- ".github/*"
8-
- ".github/workflows/**"
9-
- "build-tools/**"
10-
- "common/build/**"
11-
- "tools/markdown-magic/**"
12-
- "tools/pipelines/**"
7+
changed-files:
8+
- any-glob-to-any-file:
9+
- ".github/*"
10+
- ".github/workflows/**"
11+
- "build-tools/**"
12+
- "common/build/**"
13+
- "tools/markdown-magic/**"
14+
- "tools/pipelines/**"
1315

1416
"area: contributor experience":
15-
- ".vscode/**"
17+
changed-files:
18+
- any-glob-to-any-file: ".vscode/**"
1619

1720
"area: dds":
18-
- experimental/dds/**
19-
- packages/dds/**
21+
changed-files:
22+
- any-glob-to-any-file:
23+
- experimental/dds/**
24+
- packages/dds/**
2025

2126
"area: dds: tree":
22-
- experimental/dds/tree/**
23-
- experimental/dds/tree2/**
24-
- packages/dds/tree/**
27+
changed-files:
28+
- any-glob-to-any-file:
29+
- experimental/dds/tree/**
30+
- experimental/dds/tree2/**
31+
- packages/dds/tree/**
2532

2633
"area: dds: propertydds":
27-
- experimental/PropertyDDS/**
34+
changed-files:
35+
- any-glob-to-any-file: experimental/PropertyDDS/**
2836

2937
"area: dds: sharedstring":
30-
- packages/dds/sequence/**
38+
changed-files:
39+
- any-glob-to-any-file: packages/dds/sequence/**
3140

3241
"area: definitions":
33-
- common/lib/container-definitions/**
34-
- common/lib/core-interfaces/**
35-
- common/lib/driver-definitions/**
42+
changed-files:
43+
- any-glob-to-any-file:
44+
- common/lib/container-definitions/**
45+
- common/lib/core-interfaces/**
46+
- common/lib/driver-definitions/**
3647

3748
"area: dev experience":
38-
- experimental/framework/**
49+
changed-files:
50+
- any-glob-to-any-file: experimental/framework/**
3951

4052
"area: driver":
41-
- packages/drivers/**
53+
changed-files:
54+
- any-glob-to-any-file: packages/drivers/**
4255

4356
"area: examples":
44-
- examples/**
45-
- experimental/examples/**
57+
changed-files:
58+
- any-glob-to-any-file:
59+
- examples/**
60+
- experimental/examples/**
4661

4762
"area: framework":
48-
- packages/framework/**
63+
changed-files:
64+
- any-glob-to-any-file: packages/framework/**
4965

5066
"area: loader":
51-
- packages/loader/**
67+
changed-files:
68+
- any-glob-to-any-file: packages/loader/**
5269

5370
"area: odsp-driver":
54-
- packages/drivers/*odsp*/**
55-
- packages/utils/odsp-doclib-utils/**
71+
changed-files:
72+
- any-glob-to-any-file:
73+
- packages/drivers/*odsp*/**
74+
- packages/utils/odsp-doclib-utils/**
5675

5776
# Add "area: repo" label to any root or .github changes
5877
"area: repo":
59-
- any: ["*", ".github/**", "!BREAKING.md"]
78+
changed-files:
79+
- any-glob-to-any-file:
80+
- "*"
81+
- ".github/**"
82+
- "!BREAKING.md"
6083

6184
"area: runtime":
62-
- packages/runtime/**
85+
changed-files:
86+
- any-glob-to-any-file: packages/runtime/**
6387

6488
"area: server":
65-
- server/**
89+
changed-files:
90+
- any-glob-to-any-file: server/**
6691

6792
"area: tests":
68-
- packages/test/**
93+
changed-files:
94+
- any-glob-to-any-file: packages/test/**
6995

7096
"area: tools":
71-
- any: ["common/build/**", "tools/**", "!tools/markdown-magic/**"]
97+
changed-files:
98+
- any-glob-to-any-file:
99+
- common/build/**
100+
- tools/**
101+
- "!tools/markdown-magic/**"
72102

73103
"area: website":
74-
- any: ["docs/**", "!docs/content/**"]
104+
changed-files:
105+
- any-glob-to-any-file:
106+
- docs/**
107+
- "!docs/content/**"
75108

76109
"breaking change":
77-
- BREAKING.md
110+
changed-files:
111+
- any-glob-to-any-file: BREAKING.md
78112

79113
"changeset-present":
80-
- .changeset/**
81-
- server/routerlicious/.changeset/**
114+
changed-files:
115+
- any-glob-to-any-file:
116+
- .changeset/**
117+
- server/routerlicious/.changeset/**
82118

83119
dependencies:
84-
- package-lock.json
85-
- pnpm-lock.yaml
120+
changed-files:
121+
- any-glob-to-any-file:
122+
- package-lock.json
123+
- pnpm-lock.yaml
86124

87125
documentation:
88-
- docs/content/**
126+
changed-files:
127+
- any-glob-to-any-file: docs/content/**
89128

90129
# flag changes to public APIs so they can be reviewed to see if they're breaking
91130
"public api change":
92-
- "**/api-report/**"
131+
changed-files:
132+
- any-glob-to-any-file: "**/api-report/**"

.github/labeler-changesets.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55

66
# Require changesets for server public API changes
77
"changeset-required":
8-
- "**/routerlicious/api-report/**"
8+
changed-files:
9+
- any-glob-to-any-file: "**/routerlicious/api-report/**"

.github/workflows/changeset-reporter.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@ jobs:
2020
pull-requests: write # for marocchino/sticky-pull-request-comment to create or update PR comment
2121
runs-on: ubuntu-latest
2222
steps:
23-
# release notes: https://github.com/actions/checkout/releases/tag/v5.0.0
24-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # ratchet:actions/checkout@v5
23+
# release notes: https://github.com/actions/checkout/releases/tag/v6.0.0
24+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # ratchet:actions/checkout@v6
2525
with:
2626
persist-credentials: false
2727

2828
- name: Download results
29-
uses: dawidd6/action-download-artifact@bd10f381a96414ce2b13a11bfa89902ba7cea07f # ratchet:dawidd6/[email protected]
29+
# release notes: https://github.com/dawidd6/action-download-artifact/releases/tag/v11
30+
uses: dawidd6/action-download-artifact@ac66b43f0e6a346234dd65d4d0c8fbb31cb316e5 # ratchet:dawidd6/action-download-artifact@v11
3031
with:
3132
workflow: pr-check-changeset.yml
3233
run_id: ${{ github.event.workflow_run.id }}
@@ -38,17 +39,17 @@ jobs:
3839

3940
- name: Required but missing
4041
if: fromJson(steps.changeset.outputs.CHANGESET).required == true && fromJson(steps.changeset.outputs.CHANGESET).changesetFound == false
41-
# release notes: https://github.com/marocchino/sticky-pull-request-comment/releases/tag/v2.9.0
42-
uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31 # ratchet:marocchino/sticky-pull-request-comment@v2.9.0
42+
# release notes: https://github.com/marocchino/sticky-pull-request-comment/releases/tag/v2.9.4
43+
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # ratchet:marocchino/sticky-pull-request-comment@v2
4344
with:
4445
header: changeset
4546
number: ${{ fromJson(steps.changeset.outputs.CHANGESET).pr }}
4647
path: ${{ github.workspace }}/.github/workflows/data/changeset-missing.md
4748

4849
- name: Required and present
4950
if: fromJson(steps.changeset.outputs.CHANGESET).required == true && fromJson(steps.changeset.outputs.CHANGESET).changesetFound == true
50-
# release notes: https://github.com/marocchino/sticky-pull-request-comment/releases/tag/v2.9.0
51-
uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31 # ratchet:marocchino/sticky-pull-request-comment@v2.9.0
51+
# release notes: https://github.com/marocchino/sticky-pull-request-comment/releases/tag/v2.9.4
52+
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # ratchet:marocchino/sticky-pull-request-comment@v2
5253
with:
5354
header: changeset
5455
number: ${{ fromJson(steps.changeset.outputs.CHANGESET).pr }}
@@ -58,8 +59,8 @@ jobs:
5859
5960
- name: Changeset not required
6061
if: fromJson(steps.changeset.outputs.CHANGESET).required == false && fromJson(steps.changeset.outputs.CHANGESET).changesetFound == true
61-
# release notes: https://github.com/marocchino/sticky-pull-request-comment/releases/tag/v2.9.0
62-
uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31 # ratchet:marocchino/sticky-pull-request-comment@v2.9.0
62+
# release notes: https://github.com/marocchino/sticky-pull-request-comment/releases/tag/v2.9.4
63+
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # ratchet:marocchino/sticky-pull-request-comment@v2
6364
with:
6465
header: changeset
6566
number: ${{ fromJson(steps.changeset.outputs.CHANGESET).pr }}

.github/workflows/linkcheck-reporter.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,17 @@ on:
77

88
permissions:
99
contents: read
10-
actions: read # for dawidd6/action-download-artifact to query and download artifacts
10+
actions: read # for dawidd6/action-download-artifact to query and download artifacts
1111

1212
jobs:
1313
load_report:
1414
permissions:
15-
pull-requests: write # for marocchino/sticky-pull-request-comment to create or update PR comment
15+
pull-requests: write # for marocchino/sticky-pull-request-comment to create or update PR comment
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Download results
19-
uses: dawidd6/action-download-artifact@bd10f381a96414ce2b13a11bfa89902ba7cea07f # ratchet:dawidd6/[email protected]
19+
# release notes: https://github.com/dawidd6/action-download-artifact/releases/tag/v11
20+
uses: dawidd6/action-download-artifact@ac66b43f0e6a346234dd65d4d0c8fbb31cb316e5 # ratchet:dawidd6/action-download-artifact@v11
2021
with:
2122
workflow: website-validation.yml
2223
# workflow_conclusion: completed
@@ -28,8 +29,8 @@ jobs:
2829
run: echo "pr=$(cat pr)" >> $GITHUB_OUTPUT
2930
working-directory: ./results
3031
- name: Post report in comment
31-
# release notes: https://github.com/marocchino/sticky-pull-request-comment/releases/tag/v2.9.0
32-
uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31 # ratchet:marocchino/sticky-pull-request-comment@v2.9.0
32+
# release notes: https://github.com/marocchino/sticky-pull-request-comment/releases/tag/v2.9.4
33+
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # ratchet:marocchino/sticky-pull-request-comment@v2
3334
with:
3435
header: linkreport
3536
recreate: true

.github/workflows/pr-changeset-review.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,13 @@ jobs:
2626
name: vale
2727
runs-on: ubuntu-latest
2828
steps:
29-
# release notes: https://github.com/actions/checkout/releases/tag/v5.0.0
30-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # ratchet:actions/checkout@v5
29+
# release notes: https://github.com/actions/checkout/releases/tag/v6.0.0
30+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # ratchet:actions/checkout@v6
3131
with:
3232
persist-credentials: false
33-
- uses: errata-ai/vale-action@d89dee975228ae261d22c15adcd03578634d429c # ratchet:errata-ai/[email protected]
33+
34+
# release notes: https://github.com/errata-ai/vale-action/releases/tag/v2.1.1
35+
- uses: errata-ai/vale-action@d89dee975228ae261d22c15adcd03578634d429c # ratchet:errata-ai/vale-action@v2
3436
with:
3537
files: .changeset
3638
vale_flags: "--glob=*-*-*.md"

.github/workflows/pr-check-changeset.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222
runs-on: ubuntu-latest
2323
if: contains(github.event.pull_request.labels.*.name, 'changeset-required')
2424
steps:
25-
# release notes: https://github.com/actions/checkout/releases/tag/v5.0.0
26-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # ratchet:actions/checkout@v5
25+
# release notes: https://github.com/actions/checkout/releases/tag/v6.0.0
26+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # ratchet:actions/checkout@v6
2727
with:
2828
fetch-depth: "0" # all history
2929
persist-credentials: false
@@ -76,8 +76,8 @@ jobs:
7676
echo $(jq -c '. += {required: false}' changeset-metadata.json) > changeset-metadata.json
7777
7878
- name: Upload changeset metadata
79-
# release notes: https://github.com/actions/upload-artifact/releases/tag/v4.4.3
80-
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # ratchet:actions/upload-artifact@v4
79+
# release notes: https://github.com/actions/upload-artifact/releases/tag/v5.0.0
80+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # ratchet:actions/upload-artifact@v5
8181
with:
8282
name: changeset-metadata
8383
path: ./changeset-metadata.json
@@ -102,8 +102,8 @@ jobs:
102102
echo $(jq -c '. += { pr: "${{ github.event.number }}" }' changeset-metadata.json) > changeset-metadata.json
103103
104104
- name: Upload changeset metadata
105-
# release notes: https://github.com/actions/upload-artifact/releases/tag/v4.4.3
106-
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # ratchet:actions/upload-artifact@v4
105+
# release notes: https://github.com/actions/upload-artifact/releases/tag/v5.0.0
106+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # ratchet:actions/upload-artifact@v5
107107
with:
108108
name: changeset-metadata
109109
path: ./changeset-metadata.json

.github/workflows/pr-labeler.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ on:
55
branches: [main, next, release/**/*]
66

77
permissions:
8-
contents: read # for actions/labeler to determine modified files
8+
contents: read # for actions/labeler to determine modified files
99

1010
jobs:
1111
areas_label:
1212
permissions:
13-
pull-requests: write # for actions/labeler to add labels to PRs
13+
pull-requests: write # for actions/labeler to add labels to PRs
1414
runs-on: ubuntu-latest
1515
name: Label areas
1616
# Skip labeling main-next merge PRs. The area labels are noisy and distracting for main-next PRs because they can
@@ -20,7 +20,8 @@ jobs:
2020
# This is implemented by comparing the PR title because at creation time, the PR has no labels (and the GItHub API
2121
# does not have a way to set labels at creation either), so skipping based on labels does not work.
2222
steps:
23-
- uses: actions/labeler@5c7539237e04b714afd8ad9b4aed733815b9fab4 # ratchet:actions/[email protected]
23+
# release notes: https://github.com/actions/labeler/releases/tag/v6.0.1
24+
- uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b # ratchet:actions/labeler@v6
2425
if: "github.event.pull_request.title != 'Automation: main-next integrate'"
2526
with:
2627
configuration-path: ".github/labeler-areas.yml"
@@ -30,21 +31,23 @@ jobs:
3031
# this CI job calls the labeler action wuth sync-labels=false, so the label won't be removed automatically.
3132
changesets_label:
3233
permissions:
33-
pull-requests: write # for actions/labeler to add labels to PRs
34+
pull-requests: write # for actions/labeler to add labels to PRs
3435
runs-on: ubuntu-latest
3536
name: Label changeset-required
3637
steps:
37-
- uses: actions/labeler@5c7539237e04b714afd8ad9b4aed733815b9fab4 # ratchet:actions/[email protected]
38+
# release notes: https://github.com/actions/labeler/releases/tag/v6.0.1
39+
- uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b # ratchet:actions/labeler@v6
3840
with:
3941
configuration-path: ".github/labeler-changesets.yml"
4042
repo-token: "${{ github.token }}"
4143
sync-labels: false # The changeset-required label is often added manually, so don't remove it.
4244
branches_label:
4345
permissions:
44-
pull-requests: write # for actions/labeler to add labels to PRs
46+
pull-requests: write # for actions/labeler to add labels to PRs
4547
runs-on: ubuntu-latest
4648
name: Label base branches and external contributors
4749
steps:
48-
- uses: srvaroa/labeler@9c29ad1ef33d169f9ef33c52722faf47a566bcf3 # ratchet:srvaroa/labeler@v1
50+
# release notes: https://github.com/srvaroa/labeler/releases/tag/v1.13.0
51+
- uses: srvaroa/labeler@0a20eccb8c94a1ee0bed5f16859aece1c45c3e55 # ratchet:srvaroa/[email protected]
4952
env:
5053
GITHUB_TOKEN: "${{ github.token }}"

.github/workflows/pr-release-branch-warning.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ permissions:
1818
jobs:
1919
warning:
2020
permissions:
21-
pull-requests: write # for marocchino/sticky-pull-request-comment to create or update PR comment
21+
pull-requests: write # for marocchino/sticky-pull-request-comment to create or update PR comment
2222
runs-on: ubuntu-latest
2323
steps:
24-
# release notes: https://github.com/actions/checkout/releases/tag/v5.0.0
25-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # ratchet:actions/checkout@v5
24+
# release notes: https://github.com/actions/checkout/releases/tag/v6.0.0
25+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # ratchet:actions/checkout@v6
2626
with:
2727
persist-credentials: false
2828
submodules: false
2929

3030
- name: Post warning in comment
31-
# release notes: https://github.com/marocchino/sticky-pull-request-comment/releases/tag/v2.9.0
32-
uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31 # ratchet:marocchino/sticky-pull-request-comment@v2.9.0
31+
# release notes: https://github.com/marocchino/sticky-pull-request-comment/releases/tag/v2.9.4
32+
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # ratchet:marocchino/sticky-pull-request-comment@v2
3333
with:
3434
header: release-warning
3535
path: ${{ github.workspace }}/.github/workflows/data/release-branch-warning.md

0 commit comments

Comments
 (0)