File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626 url-check :
2727 name : Check URLs
2828 needs : set-up
29- if : ${{needs.set-up.outputs.toggle_url_check_periodically == 'yes '}}
29+ if : ${{needs.set-up.outputs.toggle_url_check_periodically == 'true '}}
3030 runs-on : ubuntu-latest
3131 container :
3232 image : jhudsl/base_ottr:main
5454 shell : bash
5555
5656 - name : Run the check
57- uses : jhudsl /ottr-reports@main
57+ uses : ottrproject /ottr-reports@main
5858 id : check_results
5959 continue-on-error : true
6060 with :
@@ -79,13 +79,23 @@ jobs:
7979 echo ${{ steps.check-report.outputs.error_url }}
8080 echo ${{ steps.check-report.outputs.error_num }}
8181
82+ # Commit file
83+ - name : Commit spell check file
84+ if : ${{ steps.check-report.outputs.error_num >= 1 }}
85+ env :
86+ GH_PAT : ${{ secrets.GH_PAT }}
87+ run : |
88+ git add --force check_reports/url_checks.tsv
89+ git commit -m 'Add spell check file' || echo "No changes to commit"
90+ git push --set-upstream origin preview-spell-error || echo echo branch exists remotely
91+
8292 - name : Find issues
8393 id : find-issue
8494 env :
8595 GH_PAT : ${{ secrets.GH_PAT }}
8696 run : |
8797 echo "$GITHUB_REPOSITORY"
88- curl -o find_issue.R https://raw.githubusercontent.com/jhudsl /ottr-reports/main/scripts/find_issue.R
98+ curl -o find_issue.R https://raw.githubusercontent.com/ottrproject /ottr-reports/main/scripts/find_issue.R
8999 issue_exists=$(Rscript --vanilla find_issue.R --repo $GITHUB_REPOSITORY --git_pat $GH_PAT)
90100 echo URL issue exists: $issue_exists
91101 echo "issue_existence=$issue_exists" >> $GITHUB_OUTPUT
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 4545
4646 - name : Login as jhudsl-robot
4747 run : |
48- git config --system --add safe.directory "$GITHUB_WORKSPACE"
4948 git config --local user.email "itcrtrainingnetwork@gmail.com"
5049 git config --local user.name "jhudsl-robot"
5150
You can’t perform that action at this time.
0 commit comments