Image guard x2(?

This commit is contained in:
Xoconoch
2025-08-09 14:04:41 -06:00
parent b26c85ad66
commit 440dc5cd87

View File

@@ -14,6 +14,10 @@ on:
- '.github/workflows/compose-image-guard.yml' - '.github/workflows/compose-image-guard.yml'
- '.github/scripts/ensure_compose_image.py' - '.github/scripts/ensure_compose_image.py'
permissions:
contents: write
pull-requests: write
jobs: jobs:
validate-compose-image: validate-compose-image:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -31,6 +35,12 @@ jobs:
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install pyyaml pip install pyyaml
- name: Validate docker-compose image # On pushes to this repo: normalize and push
run: | - name: Validate and normalize (auto-commit on push)
python .github/scripts/ensure_compose_image.py docker-compose.yaml --autocommit if: github.event_name == 'push' && github.repository == 'Xoconoch/spotizerr'
run: python .github/scripts/ensure_compose_image.py docker-compose.yaml --autocommit
# On PRs (including forks): validate only, no push
- name: Validate (no auto-commit on PR)
if: github.event_name != 'push' || github.repository != 'Xoconoch/spotizerr'
run: python .github/scripts/ensure_compose_image.py docker-compose.yaml