#! /usr/bin/env bash
set -eoux pipefail

git checkout -- service.lock.yaml
if go run cmd/versioncheck/main.go --source service.lock.yaml --output service.yaml; then
    mv service.yaml service.lock.yaml
fi
