mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-07 04:20:12 +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
|
||||
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
|
||||
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
|
||||
id: createpr
|
||||
|
||||
Reference in New Issue
Block a user