Skip to content

Commit

Permalink
Pass in branch name for OTTR comments to send people (#710)
Browse files Browse the repository at this point in the history
* pass in branch name

* Update 02-chapter_of_course.Rmd

* add in token for permission

* ${GITHUB_HEAD_REF}

* Update 02-chapter_of_course.Rmd
  • Loading branch information
cansavvy authored Jan 26, 2024
1 parent a4ea576 commit 6f2ce3a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}"
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 6f2ce3a

Please sign in to comment.