Skip to content

Commit 3f9ca75

Browse files
authored
adding -A
1 parent 95810d6 commit 3f9ca75

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/use-visitor-counter.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ jobs:
6666
git fetch origin
6767
git checkout ${{ github.head_ref }}
6868
git pull origin ${{ github.head_ref }} || echo "No merge needed"
69-
git add "*.md" || true
70-
[ -f metrics.json ] && git add metrics.json || true
69+
git add -A
7170
git commit -m "Update visitor count" || echo "No changes to commit"
7271
git remote set-url origin https://x-access-token:${TOKEN}@github.com/${{ github.repository }}
7372
git push origin HEAD:${{ github.head_ref }}
@@ -81,8 +80,7 @@ jobs:
8180
git fetch origin
8281
git checkout ${{ github.ref_name }} || git checkout -b ${{ github.ref_name }} origin/${{ github.ref_name }}
8382
git pull origin ${{ github.ref_name }} || echo "No merge needed"
84-
git add "*.md" || true
85-
[ -f metrics.json ] && git add metrics.json || true
83+
git add -A
8684
git commit -m "Update visitor count" || echo "No changes to commit"
8785
git remote set-url origin https://x-access-token:${TOKEN}@github.com/${{ github.repository }}
8886
git push origin HEAD:${{ github.ref_name }}

0 commit comments

Comments
 (0)