Skip to content

How can I find the version of a runner from a job? #2838

Answered by crohr
yeikel asked this question in Q&A
Discussion options

You must be logged in to vote

@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

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@artembilan
Comment options

Comment options

You must be logged in to vote
1 reply
@tbutler-qontigo
Comment options

Answer selected by nebuk89
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants