Skip to content

Commit bdcc02e

Browse files
committed
Init
1 parent e5d07de commit bdcc02e

File tree

7 files changed

+8
-7
lines changed

7 files changed

+8
-7
lines changed

lib/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
3333
};
3434
Object.defineProperty(exports, "__esModule", { value: true });
3535
const core = __importStar(require("@actions/core"));
36-
const github = __importStar(require("@actions/github"));
36+
// import * as github from '@actions/github'
3737
const exec = __importStar(require("@actions/exec"));
3838
function run() {
3939
return __awaiter(this, void 0, void 0, function* () {
@@ -59,8 +59,8 @@ function run() {
5959
const time = new Date().toTimeString();
6060
core.setOutput('time', time);
6161
// Get the JSON webhook payload for the event that triggered the workflow
62-
const payload = JSON.stringify(github.context.payload, undefined, 2);
63-
console.log(`The event payload: ${payload}`);
62+
// const payload = JSON.stringify(github.context.payload, undefined, 2)
63+
// console.log(`The event payload: ${payload}`)
6464
}
6565
catch (error) {
6666
if (error instanceof Error)
85.9 KB
Binary file not shown.
3.4 MB
Binary file not shown.
Binary file not shown.
Binary file not shown.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"lint": "eslint src/**/*.ts",
1111
"package": "ncc build --source-map --license licenses.txt",
1212
"test": "jest",
13-
"all": "npm run build && npm run format && npm run lint && npm run package && npm test"
13+
"all": "npm run build && npm run format && npm run lint && npm run package && npm test",
14+
"almost-all": "npm run build && npm run format && npm run package"
1415
},
1516
"repository": {
1617
"type": "git",

src/main.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as core from '@actions/core'
2-
import * as github from '@actions/github'
2+
// import * as github from '@actions/github'
33
import * as exec from '@actions/exec'
44

55
async function run(): Promise<void> {
@@ -29,8 +29,8 @@ async function run(): Promise<void> {
2929
const time = new Date().toTimeString()
3030
core.setOutput('time', time)
3131
// Get the JSON webhook payload for the event that triggered the workflow
32-
const payload = JSON.stringify(github.context.payload, undefined, 2)
33-
console.log(`The event payload: ${payload}`)
32+
// const payload = JSON.stringify(github.context.payload, undefined, 2)
33+
// console.log(`The event payload: ${payload}`)
3434
} catch (error) {
3535
if (error instanceof Error) core.setFailed(error.message)
3636
}

0 commit comments

Comments
 (0)