Skip to content

Commit e1b609d

Browse files
authored
Merge pull request #6 from replicatedhq/adamancini-patch-node-20
update node16 to node20 in pr-labels action
2 parents 1bb6b55 + 9db0256 commit e1b609d

File tree

8 files changed

+33
-17
lines changed

8 files changed

+33
-17
lines changed

.github/actions/pr-labels/.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/actions/pr-labels/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: "Check PR labels"
22
description: "Check required PR labels are present"
33
author: "Replicated"
44
runs:
5-
using: 'node16'
5+
using: 'node20'
66
main: 'dist/index.js'
77
inputs:
88
token:
99
description: The GitHub token to use when calling the API
1010
default: ${{ github.token }}
11-
required: false
11+
required: false

.github/actions/pr-labels/dist/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9813,9 +9813,7 @@ async function run() {
98139813
core.debug(`Found primary labels: ${primaryLabels.join(", ")}`);
98149814
if (primaryLabels.length !== 1) {
98159815
throw new Error(
9816-
`Exactly one primary label must be set. Found: ${primaryLabels.join(
9817-
", "
9818-
)}`
9816+
`Exactly one primary label must be set from [${PRIMARY_LABELS.join(", ")}]. Found: ${primaryLabels.join(", ")}`
98199817
);
98209818
}
98219819

.github/actions/pr-labels/dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
module.exports[
2+
{
3+
files: ['**/*.js'],
4+
env: {
5+
commonjs: true,
6+
es6: true,
7+
jest: true,
8+
node: true,
9+
},
10+
extends: 'eslint:recommended',
11+
globals: {
12+
Atomics: 'readonly',
13+
SharedArrayBuffer: 'readonly',
14+
},
15+
ignores: ['dist/'],
16+
parserOptions: {
17+
ecmaVersion: 2018,
18+
},
19+
rules: {},
20+
}
21+
];

.github/actions/pr-labels/package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/actions/pr-labels/src/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ async function run() {
3737
core.debug(`Found primary labels: ${primaryLabels.join(", ")}`);
3838
if (primaryLabels.length !== 1) {
3939
throw new Error(
40-
`Exactly one primary label must be set. Found: ${primaryLabels.join(
41-
", "
42-
)}`
40+
`Exactly one primary label must be set from [${PRIMARY_LABELS.join(", ")}]. Found: ${primaryLabels.join(", ")}`
4341
);
4442
}
4543

.github/workflows/pr-labels-check-dist.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
id: diff
4545

4646
# If index.js was different than expected, upload the expected version as an artifact
47-
- uses: actions/upload-artifact@v3
47+
- uses: actions/upload-artifact@v4
4848
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
4949
with:
5050
name: pr-labels-dist

0 commit comments

Comments
 (0)