diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 612c8b86..831fe361 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ on: # Add explicit permissions for the workflow permissions: - contents: read + contents: write # For managing releases and pushing tags packages: write # For publishing to GitHub Container Registry jobs: @@ -71,6 +71,12 @@ jobs: else echo "is_fork=false" >> $GITHUB_OUTPUT fi + - name: Increment Build Number + id: increment_build + run: | + python scripts/increment_build.py + BUILD=$(python -c "import version; print(version.__build__)") + echo "build=${BUILD}" >> $GITHUB_OUTPUT - name: Build and push Docker image uses: docker/build-push-action@v4