Add toolkit example to container (#1)

* Add toolkit

* Remove entrypoint

* Use a node container

* Debug

* Temporarily remove package-lock.json for local dependencies

* Clean up

* Get logging working

* Use entrypoint

* Debug

* Debug

* Just print repo name
This commit is contained in:
Danny McCormick
2019-08-02 09:09:37 -04:00
committed by GitHub
parent 13a6fbf7d9
commit dcf7775603
16 changed files with 183 additions and 10 deletions

17
src/main.ts Normal file
View File

@@ -0,0 +1,17 @@
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();