diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index 872984cb65..f954395775 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -12,6 +12,18 @@ on: - cron: '0 0 */6 * *' jobs: + check-version: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Check tag with VERSION file + run: | + VERSION_TAG="$(git describe --tags --abbrev=0)" + echo "Version tag: $VERSION_TAG" + echo "Checking if VERSION file is updated.." + (( $(echo "$(echo "$VERSION" | cut -d. -f1-2) > $(cat ./core/VERSION)" |bc -l) )) + python-tests: runs-on: ubuntu-latest @@ -78,7 +90,7 @@ jobs: deploy-docker-images: runs-on: ubuntu-latest - needs: [python-tests, frontend-tests] + needs: [python-tests, frontend-tests, "check-version"] strategy: matrix: docker: [bootstrap, core]