diff --git a/.github/workflows/build-deploy-cloudrun-function.yml b/.github/workflows/build-deploy-cloudrun-function.yml index 2711e63..e80a9c9 100644 --- a/.github/workflows/build-deploy-cloudrun-function.yml +++ b/.github/workflows/build-deploy-cloudrun-function.yml @@ -32,34 +32,8 @@ on: required: true jobs: - build-number: - runs-on: ubuntu-latest - outputs: - build-number: ${{ steps.set-build-number.outputs.build-number }} - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Extract Commit Hash - id: build-number - run: | - build_number=$(git rev-parse --short=7 ${{ github.sha }}) - echo "build-number=$build_number" >> $GITHUB_OUTPUT - - - name: Set Build Number Output - id: set-build-number - run: echo "build-number=${{ steps.build-number.outputs.build-number }}" >> $GITHUB_OUTPUT - - - name: Verify Build Number - run: | - if [ -z "${{ steps.set-build-number.outputs.build-number }}" ]; then - echo "Build number is empty" - exit 1 - fi - build-and-deploy: runs-on: ubuntu-latest - needs: build-number permissions: contents: read id-token: write