Image guard x2(?
This commit is contained in:
16
.github/workflows/compose-image-guard.yml
vendored
16
.github/workflows/compose-image-guard.yml
vendored
@@ -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
|
||||||
Reference in New Issue
Block a user