Skip to content

Commit 1188eab

Browse files
committed
Improve commit step
1 parent 4e9131e commit 1188eab

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/render.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,12 @@ jobs:
4747
CTATOK: ${{ secrets.CTATOK }}
4848
run: |
4949
python get_queue.py
50-
- name: Commit results
51-
run: |
52-
git commit queue.csv -m 'New data harvest' || echo "No changes to commit"
53-
git push origin || echo "No changes to commit"
50+
- name: Commit and Push Changes
51+
id: commit-and-push
52+
uses: stefanzweifel/git-auto-commit-action@v5
53+
with:
54+
commit_message: 'New data harvest'
55+
file_pattern: 'queue.csv'
5456
- uses: r-lib/actions/setup-r@v2
5557
- uses: r-lib/actions/setup-pandoc@v2
5658
- name: Install rmarkdown

0 commit comments

Comments
 (0)