Skip to content

Commit ef318b6

Browse files
committed
changed workflow file
1 parent e3c1707 commit ef318b6

4 files changed

Lines changed: 285 additions & 6 deletions

File tree

.github/workflows/checklabels.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ jobs:
1616
- name: Install dependencies
1717
run: npm install @actions/github @actions/core
1818
- name: Run Label Checker
19-
run: node .github/workflows/label-checker.js
19+
run: node .github/workflows/label-checker.cjs
2020
env:
2121
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { getOctokit, context } from '@actions/github';
2-
import { setFailed } from '@actions/core';
1+
const { getOctokit, context } = require('@actions/github');
2+
const { setFailed } = require('@actions/core');
33

44
async function run() {
55
try {
66
const token = process.env.GITHUB_TOKEN;
7-
const octokit = new getOctokit(token);
7+
const octokit = getOctokit(token);
88

99
const pullRequest = context.payload.pull_request;
1010
const owner = pullRequest.base.repo.owner.login;
@@ -39,4 +39,4 @@ async function run() {
3939
}
4040
}
4141

42-
run();
42+
run();

package-lock.json

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

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,9 @@
88
"prepare": "husky",
99
"commitlint": "commitlint --edit"
1010
},
11-
"type": "module"
11+
"type": "module",
12+
"dependencies": {
13+
"@actions/core": "^1.11.1",
14+
"@actions/github": "^6.0.1"
15+
}
1216
}

0 commit comments

Comments
 (0)