Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/update-printers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ jobs:
git config --global user.name "infill bot"
git config --global user.email "github-actions@github.com"

# Get list of changed files (comma-separated)
CHANGED_FILES=$(git diff --name-only | tr '\n' ', ' | sed 's/, $//')
# Get list of changed files (filenames only, comma-separated)
CHANGED_FILES=$(git diff --name-only | xargs -n 1 basename | paste -sd ", ")

git add -A
git diff --cached --exit-code || (
Expand All @@ -47,4 +47,4 @@ jobs:
git commit -m "Auto update printer files. Modified: $CHANGED_FILES"
fi &&
git push origin main
)
)