Skip to content

Commit

Permalink
Added checkout, added diff before push
Browse files Browse the repository at this point in the history
  • Loading branch information
jmillanacosta authored May 2, 2024
1 parent d0fd2e9 commit aeb3edc
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/buildandpush.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ jobs:
- name: commit and push setup.sh
run: |
git config --local user.name actions-user
git config --local user.email "[email protected]"
git add setup.sh
git commit -m "Updated setup.sh with ${{ env.BDBVERSION }}-${{ env.BRIDGEDBWSVERSION }}"
git push origin master
git config --local user.name actions-user
git config --local user.email "[email protected]"
git add setup.sh
git diff --cached --quiet || git commit -m "Updated setup.sh with ${{ env.BDBVERSION }}-${{ env.BRIDGEDBWSVERSION }}"
git push origin master
echo New release tag: ${{ env.BDBWSVERSION }}
env:
Expand All @@ -57,6 +57,21 @@ jobs:
runs-on: ubuntu-latest
needs: update-version
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
Expand Down

0 comments on commit aeb3edc

Please sign in to comment.