Comparing version 10.0.0 to 11.0.0
{ | ||
"name": "env-ci", | ||
"description": "Get environment variables exposed by CI services", | ||
"version": "10.0.0", | ||
"version": "11.0.0", | ||
"author": "Pierre Vanduynslager (https://github.com/pvdlg)", | ||
@@ -13,6 +13,6 @@ "type": "module", | ||
"devDependencies": { | ||
"ava": "5.3.1", | ||
"ava": "6.0.1", | ||
"c8": "8.0.1", | ||
"file-url": "4.0.0", | ||
"prettier": "3.0.3", | ||
"prettier": "3.1.1", | ||
"tempy": "3.1.0" | ||
@@ -19,0 +19,0 @@ }, |
@@ -8,3 +8,3 @@ // https://woodpecker-ci.org/docs/usage/environment#built-in-environment-variables | ||
configuration({ env }) { | ||
const isPr = env.CI_BUILD_EVENT === "pull_request"; | ||
const isPr = env.CI_PIPELINE_EVENT === "pull_request"; | ||
@@ -16,7 +16,7 @@ return { | ||
tag: env.CI_COMMIT_TAG, | ||
build: env.CI_BUILD_NUMBER, | ||
buildUrl: env.CI_BUILD_LINK, | ||
build: env.CI_PIPELINE_NUMBER, | ||
buildUrl: env.CI_PIPELINE_URL, | ||
branch: isPr ? env.CI_COMMIT_TARGET_BRANCH : env.CI_COMMIT_BRANCH, | ||
job: env.CI_JOB_NUMBER, | ||
jobUrl: env.CI_BUILD_LINK, | ||
job: env.CI_STEP_NUMBER, | ||
jobUrl: env.CI_STEP_URL, | ||
pr: env.CI_COMMIT_PULL_REQUEST, | ||
@@ -23,0 +23,0 @@ isPr, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
53142