diff --git a/.github/workflows/delete-preview.yml b/.github/workflows/delete-preview.yml index 419d2f4e8..b910ad459 100644 --- a/.github/workflows/delete-preview.yml +++ b/.github/workflows/delete-preview.yml @@ -10,6 +10,7 @@ jobs: build-all: runs-on: ubuntu-latest steps: + # This is because if a PR is closed before a render finishes it won't find it. - name: Sleep for 5 minutes run: sleep 300s diff --git a/.github/workflows/docker-build-test.yml b/.github/workflows/docker-build-test.yml index a96a1a0dc..d22e887ee 100644 --- a/.github/workflows/docker-build-test.yml +++ b/.github/workflows/docker-build-test.yml @@ -32,8 +32,13 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 + - name: checkout repo + uses: actions/checkout@v2 + + - name: login as jhudsl-robot + run: | + git config --local user.email "itcrtrainingnetwork@gmail.com" + git config --local user.name "jhudsl-robot" - name: Don't re-test if this is a sync branch if: ${{ github.head_ref == 'repo-sync/OTTR_Template/default' }} diff --git a/.github/workflows/send-updates.yml b/.github/workflows/send-updates.yml index 6ccbe898f..b00f77b36 100644 --- a/.github/workflows/send-updates.yml +++ b/.github/workflows/send-updates.yml @@ -20,6 +20,11 @@ jobs: - name: Checkout Repository uses: actions/checkout@master + - name: login as jhudsl-robot + run: | + git config --local user.email "itcrtrainingnetwork@gmail.com" + git config --local user.name "jhudsl-robot" + - name: Get the version id: get_tag run: | @@ -32,7 +37,6 @@ jobs: echo ::set-output name=version::${{ github.event.inputs.prtag }} fi - - name: Run Mechanics File Sync uses: BetaHuhn/repo-file-sync-action@v1.7.1 with: diff --git a/.github/workflows/starting-course.yml b/.github/workflows/starting-course.yml index 7926e23df..2ba37f279 100644 --- a/.github/workflows/starting-course.yml +++ b/.github/workflows/starting-course.yml @@ -15,11 +15,14 @@ jobs: runs-on: ubuntu-latest if: github.event.repository.name != 'OTTR_Template' steps: - - # Check out current repository - - name: Fetch current branch + - name: checkout repo uses: actions/checkout@v2 + - name: login as jhudsl-robot + run: | + git config --local user.email "itcrtrainingnetwork@gmail.com" + git config --local user.name "jhudsl-robot" + ##### Filing issues! # Issue for what repository settings need to be set @@ -94,7 +97,7 @@ jobs: resources/images/04-figures_files \ Course_Name.rds \ docs/*.html \ - docs/*.md + docs/*.md # Commit modified files - name: Commit deleted files diff --git a/.github/workflows/style-and-sp-check.yml b/.github/workflows/style-and-sp-check.yml index 002cbebfa..9716ab425 100644 --- a/.github/workflows/style-and-sp-check.yml +++ b/.github/workflows/style-and-sp-check.yml @@ -20,7 +20,13 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - - uses: actions/checkout@v2 + - name: checkout repo + uses: actions/checkout@v2 + + - name: login as jhudsl-robot + run: | + git config --local user.email "itcrtrainingnetwork@gmail.com" + git config --local user.name "jhudsl-robot" - name: Run spell check id: spell_check_run @@ -35,7 +41,6 @@ jobs: name: spell-check-results path: spell_check_results.tsv - ############ The items if there's too many spelling errors! - name: Build components of the spell check comment id: build-components env: @@ -55,7 +60,7 @@ jobs: body-includes: spelling errors - name: Spelling errors! - if: ${{ steps.spell_check_run.outputs.sp_chk_results > 3 }} + if: ${{ steps.spell_check_run.outputs.sp_chk_results >= 3 }} uses: peter-evans/create-or-update-comment@v1 with: comment-id: ${{ steps.fc.outputs.comment-id }} @@ -68,7 +73,7 @@ jobs: edit-mode: replace - name: Check spell check results - fail if too many errors - if: ${{ steps.spell_check_run.outputs.sp_chk_results > 3 }} + if: ${{ steps.spell_check_run.outputs.sp_chk_results >= 3 }} run: exit 1 - name: No spelling errors @@ -88,8 +93,6 @@ jobs: - name: Commit run: | - git config --local user.email "actions@github.com" - git config --local user.name "GitHub Actions" git add \*.Rmd git commit -m 'Style Rmds' || echo "No changes to commit" git push origin || echo "No changes to commit" diff --git a/.github/workflows/test-send-updates.yml b/.github/workflows/test-send-updates.yml index d3159efb3..d02034bca 100644 --- a/.github/workflows/test-send-updates.yml +++ b/.github/workflows/test-send-updates.yml @@ -19,6 +19,11 @@ jobs: - name: Checkout Repository uses: actions/checkout@master + - name: login as jhudsl-robot + run: | + git config --local user.email "itcrtrainingnetwork@gmail.com" + git config --local user.name "jhudsl-robot" + - name: Get the version id: get_tag run: | diff --git a/.github/workflows/url-checker.yml b/.github/workflows/url-checker.yml index 2d03a4058..fd3efdf6e 100644 --- a/.github/workflows/url-checker.yml +++ b/.github/workflows/url-checker.yml @@ -15,7 +15,13 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: checkout repo + uses: actions/checkout@v2 + + - name: login as jhudsl-robot + run: | + git config --local user.email "itcrtrainingnetwork@gmail.com" + git config --local user.name "jhudsl-robot" - name: URLs-checker uses: urlstechie/urlchecker-action@master