From 9ef3c37ab4677faa06778f551656d4ef4d94ae1b Mon Sep 17 00:00:00 2001 From: Luis Rodriguez Date: Fri, 25 Oct 2024 17:18:07 -0400 Subject: [PATCH] add verification --- .github/workflows/build-deploy-cloudrun-function.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build-deploy-cloudrun-function.yml b/.github/workflows/build-deploy-cloudrun-function.yml index 874c1ef..62b9d82 100644 --- a/.github/workflows/build-deploy-cloudrun-function.yml +++ b/.github/workflows/build-deploy-cloudrun-function.yml @@ -46,6 +46,13 @@ jobs: id: build-number run: echo "build-number=$(git rev-parse --short=7 ${{ github.sha }})" >> $GITHUB_OUTPUT + - name: Verify Build Number + run: | + if [ -z "${{ steps.build-number.outputs.build-number }}" ]; then + echo "Build number is empty" + exit 1 + fi + build-and-deploy: runs-on: ubuntu-latest needs: build-number