-
Given a job, how can I find the version of the current runner? I understand that the version is printed as part of the "set up job" step such as :
but I need it programmatically as part of one of my steps. Is there any environment variable or file storing it? I went over the code but it is printing using a compiled constant that I can't access from a job Note that I am not referring to #1399 as that implies running the command from a runner |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
I cannot answer to this, but I don't see a way to add comment. Thanks |
Beta Was this translation helpful? Give feedback.
-
@yeikel you should be able to get it from the archive name in |
Beta Was this translation helpful? Give feedback.
-
@artembilan here you are: tarball=$(ls /opt/runner-cache/)
if [[ $tarball =~ ([0-9]+\.[0-9]+\.[0-9]+) ]]; then
echo "Version: ${BASH_REMATCH[1]}"
else
echo "Version not found."
fi |
Beta Was this translation helpful? Give feedback.
@artembilan here you are: