Files
first-interaction/src/main.ts
Danny McCormick a10eefa292 Initial commit
2019-08-02 17:15:36 +00:00

18 lines
442 B
TypeScript

const core = require('@actions/core');
const github = require('@actions/github');
async function run() {
try {
const myInput = core.getInput('myInput');
core.debug(`Hello ${myInput} from inside a container`);
// Get github context data
const context = github.context;
console.log(`We can even get context data, like the repo: ${context.repo.repo}`)
} catch (error) {
core.setFailed(error.message);
}
}
run();