I have a script myscript.sh on my pc containing this:
VERSION=value="$(cat .version)" NEW_VERSION=$(wget https://github.com/link/to/.version -q -O -) i