From 18dd8a6ef67c74124147b70f51d3ead08bc96de2 Mon Sep 17 00:00:00 2001 From: SergeantPanda Date: Fri, 11 Apr 2025 10:55:23 -0500 Subject: [PATCH] Moved increment build above biuld number extraction. --- .github/workflows/ci.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 91fa37f8..8aa06d0d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,6 +44,21 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Increment Build Number + if: steps.check_actor.outputs.is_bot != 'true' + id: increment_build + run: | + python scripts/increment_build.py + BUILD=$(python -c "import version; print(version.__build__)") + echo "build=${BUILD}" >> $GITHUB_OUTPUT + + - name: Commit Build Number Update + if: steps.check_actor.outputs.is_bot != 'true' + run: | + git add version.py + git commit -m "Increment build number to ${{ steps.increment_build.outputs.build }} [skip ci]" + git push + - name: Extract version info id: version run: | @@ -85,21 +100,6 @@ jobs: echo "is_fork=false" >> $GITHUB_OUTPUT fi - - name: Increment Build Number - if: steps.check_actor.outputs.is_bot != 'true' - id: increment_build - run: | - python scripts/increment_build.py - BUILD=$(python -c "import version; print(version.__build__)") - echo "build=${BUILD}" >> $GITHUB_OUTPUT - - - name: Commit Build Number Update - if: steps.check_actor.outputs.is_bot != 'true' - run: | - git add version.py - git commit -m "Increment build number to ${{ steps.increment_build.outputs.build }} [skip ci]" - git push - - name: Build and push Docker image uses: docker/build-push-action@v4 with: