Update CI permissions and increment build number in workflow

This commit is contained in:
SergeantPanda 2025-04-10 18:38:43 -05:00
parent f98962765d
commit 0ede4e43cc

View file

@ -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