From 6f2ce3a30a53f26f50c1e6d4edf20b0cabb53c69 Mon Sep 17 00:00:00 2001 From: Candace Savonen Date: Fri, 26 Jan 2024 13:38:30 -0500 Subject: [PATCH] Pass in branch name for OTTR comments to send people (#710) * pass in branch name * Update 02-chapter_of_course.Rmd * add in token for permission * ${GITHUB_HEAD_REF} * Update 02-chapter_of_course.Rmd --- .github/workflows/pull_request.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 3eaa0ca5..c58b39a7 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -17,6 +17,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + token: ${{ secrets.GH_PAT }} # Use the yaml-env-action action. - name: Load environment from YAML @@ -41,6 +42,7 @@ jobs: git push --set-upstream origin $branch_name shell: bash + outputs: toggle_spell_check: "${{ env.SPELL_CHECK }}" toggle_style_code: "${{ env.STYLE_CODE }}" @@ -59,6 +61,7 @@ jobs: check_type: spelling error_min: 3 gh_pat: secrets.GH_PAT + branch_name: ${GITHUB_HEAD_REF} url-check: name: Check URLs @@ -69,6 +72,7 @@ jobs: check_type: urls error_min: 0 gh_pat: secrets.GH_PAT + branch_name: ${GITHUB_HEAD_REF} quiz-check: name: Check quiz formatting @@ -79,6 +83,7 @@ jobs: check_type: quiz_format error_min: 0 gh_pat: secrets.GH_PAT + branch_name: ${GITHUB_HEAD_REF} ############################# Style the code ################################### style-code: