We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 63e4ac5 + d474356 commit acbfd6bCopy full SHA for acbfd6b
1 file changed
.github/workflows/cron.yml
@@ -43,7 +43,13 @@ jobs:
43
run: |
44
git config --global user.name "github-actions[bot]"
45
git config --global user.email "github-actions[bot]@users.noreply.github.com"
46
- FILES=$(git diff --name-only --diff-filter=AM HEAD -- docs/v2 | grep '\.json$' || true)
+ FILES=$(
47
+ {
48
+ git ls-files -m -- 'docs/v2' | grep '\.json$'
49
+ git diff --cached --name-only --diff-filter=AM -- 'docs/v2' | grep '\.json$'
50
+ git ls-files --others --exclude-standard -- 'docs/v2' | grep '\.json$'
51
+ } | sort -u
52
+ )
53
if [ -n "$FILES" ]; then
54
git add $FILES
55
git commit -m "chore: deploy JSON file to docs/v2 [skip ci]" || exit 0
0 commit comments