Skip to content

Commit

Permalink
Fix setting environment vars in GitHub workflow. (#80)
Browse files Browse the repository at this point in the history
GITHUB_ENV needs to be used to set environment variables, not
GITHUB_OUTPUT. The key/value pairs are also propagated to the following
steps, so it works.
  • Loading branch information
nikolaszimmermann authored Nov 21, 2024
1 parent 433d509 commit 2bed97b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/wkdev-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
- name: Set tag name
run: |
if [ "${GITHUB_BASE_REF}" = 'main' ]; then
echo "WKDEV_SDK_TAG=latest" >> "${GITHUB_OUTPUT}"
echo "WKDEV_SDK_TAG=latest" >> "${GITHUB_ENV}"
fi
echo "WKDEV_SDK_CONTAINER_REGISTRY_USER_NAME=${GITHUB_REPOSITORY_OWNER}" >> "${GITHUB_OUTPUT}"
echo "WKDEV_SDK_CONTAINER_REGISTRY_USER_NAME=$(echo ${GITHUB_REPOSITORY_OWNER} | tr '[:upper:]' '[:lower:]')" >> "${GITHUB_ENV}"
- name: Install podman
run: sudo apt-get update && sudo apt-get -y install podman fuse-overlayfs
Expand Down Expand Up @@ -63,9 +63,9 @@ jobs:
- name: Set tag name
run: |
if [ "${GITHUB_BASE_REF}" = 'main' ]; then
echo "WKDEV_SDK_TAG=latest" >> "${GITHUB_OUTPUT}"
echo "WKDEV_SDK_TAG=latest" >> "${GITHUB_ENV}"
fi
echo "WKDEV_SDK_CONTAINER_REGISTRY_USER_NAME=${GITHUB_REPOSITORY_OWNER}" >> "${GITHUB_OUTPUT}"
echo "WKDEV_SDK_CONTAINER_REGISTRY_USER_NAME=$(echo ${GITHUB_REPOSITORY_OWNER} | tr '[:upper:]' '[:lower:]')" >> "${GITHUB_ENV}"
- name: Install podman
run: sudo apt-get update && sudo apt-get -y install podman fuse-overlayfs
Expand Down

0 comments on commit 2bed97b

Please sign in to comment.