Skip to content

Commit

Permalink
ci: switch to environment files to change the environment on GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
pietroalbini committed Oct 1, 2020
1 parent 7820135 commit b710f9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ci/shared.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function ciCommandAddPath {
if isAzurePipelines; then
echo "##vso[task.prependpath]${path}"
elif isGitHubActions; then
echo "::add-path::${path}"
echo "${path}" >> "${GITHUB_PATH}"
else
echo "ciCommandAddPath only works inside CI!"
exit 1
Expand All @@ -122,7 +122,7 @@ function ciCommandSetEnv {
if isAzurePipelines; then
echo "##vso[task.setvariable variable=${name}]${value}"
elif isGitHubActions; then
echo "::set-env name=${name}::${value}"
echo "${name}=${value}" >> "${GITHUB_ENV}"
else
echo "ciCommandSetEnv only works inside CI!"
exit 1
Expand Down

0 comments on commit b710f9c

Please sign in to comment.