mirror of
https://github.com/naveenrajm7/rpmbuild.git
synced 2025-07-12 12:13:51 +00:00
Getting input from workflow
This commit is contained in:
@ -3,12 +3,13 @@ const github = require('@actions/github');
|
||||
|
||||
async function run() {
|
||||
try {
|
||||
const myInput = core.getInput('myInput');
|
||||
const myInput = core.getInput('specFile');
|
||||
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}`)
|
||||
console.log(`We can even get context data, like the repo: ${context.repo.repo}`);
|
||||
|
||||
} catch (error) {
|
||||
core.setFailed(error.message);
|
||||
}
|
||||
|
Reference in New Issue
Block a user