From 0ede4e43cc18f96200b05ac1ca9d1c04486d6b88 Mon Sep 17 00:00:00 2001 From: SergeantPanda Date: Thu, 10 Apr 2025 18:38:43 -0500 Subject: [PATCH] Update CI permissions and increment build number in workflow --- .github/workflows/ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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