mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-09 20:29:23 +02:00
hotfix(ci): fix file changes detection in update servers workflow
This commit is contained in:
@@ -66,11 +66,18 @@ jobs:
|
|||||||
|
|
||||||
- name: Check for changes
|
- name: Check for changes
|
||||||
run: |
|
run: |
|
||||||
git diff --exit-code internal/storage/servers.json >/dev/null
|
if git diff --exit-code internal/storage/servers.json >/dev/null; then
|
||||||
|
echo "Error: internal/storage/servers.json was not modified."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Check no other file changes
|
- name: Check no other file changes
|
||||||
run: |
|
run: |
|
||||||
! git diff --exit-code ':!internal/storage/servers.json' >/dev/null
|
if ! git diff --exit-code --quiet ':!internal/storage/servers.json'; then
|
||||||
|
echo "Error: Unexpected changes detected in files other than servers.json"
|
||||||
|
git status --short
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
id: createpr
|
id: createpr
|
||||||
|
|||||||
Reference in New Issue
Block a user