I'm trying to use $GITHUB_OUTPUT instead of set-output.
I set up a simple GitHub Action with a docker file based on the official tutorial.
# Container image that runs your code
FROM alpine:latest
# Copies your code file from your action repository to the filesystem path `/` of the container
COPY entrypoint.sh /entrypoint.sh
# Code file to execute when the docker container starts up (`entrypoint.sh`)
ENTRYPOINT ["/entrypoint.sh"]
And the entrypoint.sh is
#!/bin/sh -l
time=$(date)
echo "time=$time" >> $GITHUB_OUTPUT
Executing this in a Self hosted Debian runner results into a
/entrypoint.sh: 4: cannot create : Directory nonexistent
Changing the $GITHUB_OUTPUT with the usual ::set-output works correctly.
Any idea on how to solve this?
CodePudding user response:
The deprecation of set-output was mentioned recently (oct. 2022)
If you are using self-hosted runners make sure they are updated to version 2.297.0 or greater.
So check first the version of your runner.