Skip to content

Commit

Permalink
Merge pull request #6 from replicatedhq/adamancini-patch-node-20
Browse files Browse the repository at this point in the history
update node16 to node20 in pr-labels action
  • Loading branch information
adamancini authored May 2, 2024
2 parents 1bb6b55 + 9db0256 commit e1b609d
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 17 deletions.
1 change: 0 additions & 1 deletion .github/actions/pr-labels/.eslintignore

This file was deleted.

4 changes: 2 additions & 2 deletions .github/actions/pr-labels/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: "Check PR labels"
description: "Check required PR labels are present"
author: "Replicated"
runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'
inputs:
token:
description: The GitHub token to use when calling the API
default: ${{ github.token }}
required: false
required: false
4 changes: 1 addition & 3 deletions .github/actions/pr-labels/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9813,9 +9813,7 @@ async function run() {
core.debug(`Found primary labels: ${primaryLabels.join(", ")}`);
if (primaryLabels.length !== 1) {
throw new Error(
`Exactly one primary label must be set. Found: ${primaryLabels.join(
", "
)}`
`Exactly one primary label must be set from [${PRIMARY_LABELS.join(", ")}]. Found: ${primaryLabels.join(", ")}`
);
}

Expand Down
2 changes: 1 addition & 1 deletion .github/actions/pr-labels/dist/index.js.map

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions .github/actions/pr-labels/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports[
{
files: ['**/*.js'],
env: {
commonjs: true,
es6: true,
jest: true,
node: true,
},
extends: 'eslint:recommended',
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
ignores: ['dist/'],
parserOptions: {
ecmaVersion: 2018,
},
rules: {},
}
];
12 changes: 6 additions & 6 deletions .github/actions/pr-labels/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions .github/actions/pr-labels/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ async function run() {
core.debug(`Found primary labels: ${primaryLabels.join(", ")}`);
if (primaryLabels.length !== 1) {
throw new Error(
`Exactly one primary label must be set. Found: ${primaryLabels.join(
", "
)}`
`Exactly one primary label must be set from [${PRIMARY_LABELS.join(", ")}]. Found: ${primaryLabels.join(", ")}`
);
}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-labels-check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
id: diff

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

0 comments on commit e1b609d

Please sign in to comment.