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