Deploy mocks #2

Merged
stne3960 merged 3 commits from deploy-mocks into main 2025-05-22 00:43:52 +02:00
2 changed files with 4 additions and 3 deletions
Showing only changes of commit 5a843affdc - Show all commits

View File

@ -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 }}'"