Skip to content

Commit

Permalink
try about gha states
Browse files Browse the repository at this point in the history
  • Loading branch information
Demmonius committed Jan 8, 2021
1 parent 232ab9c commit c2a907f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const run = () => __awaiter(void 0, void 0, void 0, function* () {
try {
console.log(core.getState("foo"));
core.saveState("foo", "bar");
return;
const variables = core.getInput('variables');
const delimiter = core.getInput('delimiter');
core.debug(`Received variables: ${variables}`); // debug is only output if you set the secret `ACTIONS_RUNNER_DEBUG` to true https://github.com/actions/toolkit/blob/master/docs/action-debugging.md#how-to-access-step-debug-logs
Expand Down
1 change: 1 addition & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const run = async (): Promise<void> => {
try {
console.log(core.getState("foo"));
core.saveState("foo", "bar");
return;
const variables: string = core.getInput('variables');
const delimiter: string = core.getInput('delimiter');
core.debug(`Received variables: ${variables}`); // debug is only output if you set the secret `ACTIONS_RUNNER_DEBUG` to true https://github.com/actions/toolkit/blob/master/docs/action-debugging.md#how-to-access-step-debug-logs
Expand Down

0 comments on commit c2a907f

Please sign in to comment.