Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
fix: adds vars to output
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Raphael committed Jan 5, 2021
1 parent 2dd891b commit e69e69e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ async function run() {
core.info(`last_commit.sha: ${last_commit.sha}`);
core.info(`last_commit.message: ${last_commit.commit.message}`);

core.setOutput('LAST_COMMIT_SHA', last_commit.sha);
core.setOutput('LAST_COMMIT_MESSAGE', last_commit.commit.message);

} catch (error) {
core.setFailed(error.message);
}
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "javascript-action",
"version": "1.0.5",
"version": "1.0.6",
"description": "JavaScript Action Template",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit e69e69e

Please sign in to comment.