From 07ed9d227b097622f2b95eef8a4e7c21212b2dee Mon Sep 17 00:00:00 2001 From: Candace Savonen Date: Wed, 11 Dec 2024 12:33:46 -0500 Subject: [PATCH] Update check-url.yml (#786) * Update check-url.yml * Update 02-chapter_of_course.Rmd * Update check-url.yml * Update 02-chapter_of_course.Rmd --- .github/workflows/check-url.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/check-url.yml b/.github/workflows/check-url.yml index a4370498..090f12f6 100644 --- a/.github/workflows/check-url.yml +++ b/.github/workflows/check-url.yml @@ -78,6 +78,16 @@ jobs: run: | echo ${{ steps.check-report.outputs.error_url }} echo ${{ steps.check-report.outputs.error_num }} + + # Commit file + - name: Commit tocless bookdown files + if: ${{ steps.check-report.outputs.error_num >= 1 }} + env: + GH_PAT: ${{ secrets.GH_PAT }} + run: | + git add --force check_reports/url_checks.tsv + git commit -m 'Add spell check file' || echo "No changes to commit" + git push --set-upstream origin preview-spell-error || echo echo branch exists remotely - name: Find issues id: find-issue