-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
24 lines (21 loc) · 866 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
const core = require('@actions/core');
const github = require('@actions/github');
const https = require('https');
try {
const time = (new Date()).toTimeString();
core.setOutput("time", time);
// Get the JSON webhook payload for the event that triggered the workflow
const payload = JSON.stringify(github, undefined, 2)
console.log(`The event payload: ${payload}`);
console.log(core.getInput('team'));
console.log(github.context.payload.repository.assignees_url);
console.log(process.env);
// const token = core.getInput('repo-token');
// https.get('https://api.github.com/repos/packbackbooks/questions/assignees',
// { json: true, authorization: `Bearer ${ token }` },
// (err, res, body) => {
// console.log(err, res, body);
// });
} catch (error) {
core.setFailed(error.message);
}