Skip to content

Commit

Permalink
Fix setting environment vars in GitHub workflow.
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 committed Nov 21, 2024
1 parent ccd09fe commit cd0b38f
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=${GITHUB_REPOSITORY_OWNER}" >> "${GITHUB_ENV}"
- name: Install podman
run: sudo apt-get update && sudo apt-get -y install podman fuse-overlayfs
Expand Down Expand Up @@ -59,9 +59,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=${GITHUB_REPOSITORY_OWNER}" >> "${GITHUB_ENV}"
- name: Install podman
run: sudo apt-get update && sudo apt-get -y install podman fuse-overlayfs
Expand Down

0 comments on commit cd0b38f

Please sign in to comment.