diff --git a/.github/workflows/versions.yaml b/.github/workflows/versions.yaml
deleted file mode 100644
index d3fd816b6b3ac5746b55c7d00274a403f70d28de..0000000000000000000000000000000000000000
--- a/.github/workflows/versions.yaml
+++ /dev/null
@@ -1,19 +0,0 @@
-name: Sync component versions
-
-on:
-  schedule:
-    - cron: '18 8 * * *'
-
-jobs:
-  versions:
-    runs-on: ubuntu-latest
-    steps:
-    - uses: actions/checkout@v2
-      with:
-        persist-credentials: false
-    - uses: actions/setup-go@v2
-    - uses: romoh/dependencies-autoupdate@v1.1
-      with:
-        token: ${{ secrets.GITHUB_TOKEN }}
-        update-command: "'scripts/generate-versions.sh $token > jsonnet/kube-prometheus/versions.json'"
-        on-changes-command: "'make --always-make generate'"
diff --git a/scripts/generate-versions.sh b/scripts/generate-versions.sh
index 3eb01baec3334f6cecfdd9f8e27be188a93dbb28..2daa38bbd3552d0eea558797ff7a4e5b0bc12073 100755
--- a/scripts/generate-versions.sh
+++ b/scripts/generate-versions.sh
@@ -11,7 +11,12 @@ get_latest_version() {
 # Get component version from version file
 get_current_version() {
   echo >&2 "Reading currently used version of ${1}"
-  jq -r ".${1}" "$VERSION_FILE"
+  v=$(jq -r ".${1}" "$VERSION_FILE")
+  if [ "${v}" == "" ]; then
+    echo >&2 "Couldn't read version of ${1} from $VERSION_FILE"
+    exit 1
+  fi
+  echo "$v"
 }
 
 # Get version from online source and filter out unstable releases. In case of unstable release use what is set in version file
@@ -32,7 +37,7 @@ convert_to_camel_case() {
 }
 
 # File is used to read current versions
-VERSION_FILE="jsonnet/kube-prometheus/versions.json"
+VERSION_FILE="$(pwd)/jsonnet/kube-prometheus/versions.json"
 
 # token can be passed as `GITHUB_TOKEN` variable or passed as first argument
 GITHUB_TOKEN=${GITHUB_TOKEN:-${1}}