fix change selector in workflow
Some checks failed
MVS Upload & Execute / upload-and-run (push) Failing after 12s
Some checks failed
MVS Upload & Execute / upload-and-run (push) Failing after 12s
This commit is contained in:
parent
fad5d5fa65
commit
c2662020b0
@ -11,6 +11,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0 # Full history for git diff
|
||||||
|
|
||||||
- name: Prepare environment
|
- name: Prepare environment
|
||||||
id: setup
|
id: setup
|
||||||
@ -42,8 +44,9 @@ jobs:
|
|||||||
# Fallback to all .c/.bas files if no changes or no previous commit
|
# Fallback to all .c/.bas files if no changes or no previous commit
|
||||||
if [ -z "$CHANGED_FILES" ]; then
|
if [ -z "$CHANGED_FILES" ]; then
|
||||||
echo "=== Debug: No changes found; running fallback find ==="
|
echo "=== Debug: No changes found; running fallback find ==="
|
||||||
CHANGED_FILES=$(find . -type f \( -name "*.c" -o -name "*.bas" \) | head -1)
|
# Find newest .c/.bas by modification time (sort -nr on %T@ timestamp)
|
||||||
echo "Fallback files: '${CHANGED_FILES}'"
|
CHANGED_FILES=$(find . -type f \( -name "*.c" -o -name "*.bas" \) -printf '%T@ %p\n' 2>/dev/null | sort -nr | cut -d' ' -f2- | head -1)
|
||||||
|
echo "Fallback files (newest first): '${CHANGED_FILES}'"
|
||||||
echo "=== Debug: Fallback complete ==="
|
echo "=== Debug: Fallback complete ==="
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user