Deploy mocks #2
7
.github/workflows/deploy-mocks.yml
vendored
7
.github/workflows/deploy-mocks.yml
vendored
@ -2,6 +2,7 @@ name: Deploy Mocks to Server
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
branches: [ main ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
upload-mocks:
|
upload-mocks:
|
||||||
@ -14,11 +15,12 @@ jobs:
|
|||||||
- name: Detect changes in mocks/
|
- name: Detect changes in mocks/
|
||||||
id: changes
|
id: changes
|
||||||
run: |
|
run: |
|
||||||
git fetch --all --prune --unshallow || true
|
echo "Fetching history..."
|
||||||
|
git fetch --unshallow || true
|
||||||
git log --oneline -n 5 || true
|
git log --oneline -n 5 || true
|
||||||
|
|
||||||
echo "Checking for changes in mocks/..."
|
echo "Checking for changes in mocks/..."
|
||||||
CHANGED=$(git diff --name-status origin/main...HEAD || true)
|
CHANGED=$(git diff --name-status HEAD~1 HEAD || true)
|
||||||
echo "Full diff output:"
|
echo "Full diff output:"
|
||||||
echo "$CHANGED"
|
echo "$CHANGED"
|
||||||
|
|
||||||
@ -32,7 +34,6 @@ jobs:
|
|||||||
echo "EOF"
|
echo "EOF"
|
||||||
} >> "$GITHUB_OUTPUT"
|
} >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
|
|
||||||
- name: Show changed_files output
|
- name: Show changed_files output
|
||||||
run: echo "changed_files = '${{ steps.changes.outputs.changed_files }}'"
|
run: echo "changed_files = '${{ steps.changes.outputs.changed_files }}'"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user