Skip to content

Commit

Permalink
remove build-number job
Browse files Browse the repository at this point in the history
  • Loading branch information
cru-Luis-Rodriguez committed Oct 28, 2024
1 parent 54e65c4 commit 3f08f2d
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/build-deploy-cloudrun-function.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3f08f2d

Please sign in to comment.