mirror of
https://github.com/FranzDiebold/github-env-vars-action.git
synced 2025-04-20 07:27:04 -05:00
Prepare for release.
This commit is contained in:
parent
2858253253
commit
d1440854fc
5 changed files with 12 additions and 4 deletions
7
dist/index.js
vendored
7
dist/index.js
vendored
|
@ -192,6 +192,13 @@ try {
|
|||
const pullRequest = github.context.payload &&
|
||||
github.context.payload.pull_request;
|
||||
if (pullRequest) {
|
||||
const prSha = github.event.pull_request.head.sha;
|
||||
core.exportVariable('CI_PR_SHA_SHORT', getShaShort(prSha));
|
||||
core.info(`Set CI_PR_SHA_SHORT=${process.env.CI_PR_SHA_SHORT}`);
|
||||
|
||||
core.exportVariable('CI_PR_SHA', prSha);
|
||||
core.info(`Set CI_PR_SHA=${process.env.CI_PR_SHA}`);
|
||||
|
||||
const prNumber = pullRequest.number;
|
||||
core.exportVariable('CI_PR_NUMBER', prNumber);
|
||||
core.info(`Set CI_PR_NUMBER=${process.env.CI_PR_NUMBER}`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue