mirror of
https://github.com/FranzDiebold/github-env-vars-action.git
synced 2025-02-21 04:02:48 -05:00
Prepare for release.
This commit is contained in:
parent
2858253253
commit
d1440854fc
5 changed files with 12 additions and 4 deletions
1
.github/workflows/demo.yml
vendored
1
.github/workflows/demo.yml
vendored
|
@ -126,6 +126,7 @@ jobs:
|
|||
echo "CI_REF=$CI_REF"
|
||||
echo "CI_HEAD_REF_SLUG=$CI_HEAD_REF_SLUG"
|
||||
echo "CI_HEAD_REF=$CI_HEAD_REF"
|
||||
echo "CI_BASE_REF_SLUG=$CI_BASE_REF_SLUG"
|
||||
echo "CI_BASE_REF=$CI_BASE_REF"
|
||||
echo "CI_SHA_SHORT=$CI_SHA_SHORT"
|
||||
echo "CI_SHA=$CI_SHA"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
[](https://github.com/marketplace/actions/github-environment-variables-action)
|
||||
[](.github/workflows/demo.yml)
|
||||
[](https://github.com/FranzDiebold/github-env-vars-action/releases/tag/v2.4.0)
|
||||
[](https://github.com/FranzDiebold/github-env-vars-action/releases/tag/v2.5.0)
|
||||
[](https://github.com/FranzDiebold/github-env-vars-action/actions?query=workflow%3A%22Lint+and+Test%22)
|
||||
[](./LICENSE)
|
||||
|
||||
|
|
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}`);
|
||||
|
|
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "github-env-vars-action",
|
||||
"version": "2.4.0",
|
||||
"version": "2.5.0",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "github-env-vars-action",
|
||||
"version": "2.4.0",
|
||||
"version": "2.5.0",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.9.0",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "github-env-vars-action",
|
||||
"version": "2.4.0",
|
||||
"version": "2.5.0",
|
||||
"description": "A GitHub Action to expose useful environment variables.",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
|
Loading…
Add table
Reference in a new issue