Skip to content

Commit

Permalink
Adding GH context refs
Browse files Browse the repository at this point in the history
Added step to show GH context refs and understand where this job would be committing changes.
  • Loading branch information
jibarozzo authored Dec 12, 2024
1 parent 2f215b0 commit 9ce7100
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/render-rmarkdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,19 @@ jobs:
concurrency:
group: rmarkdown-${{ github.event_name != 'pull_request' || github.run_id }}
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write

steps:
- name: Showing GH context refs
shell: bash
run: |
echo github.head_ref ${{ github.head_ref }}
echo github.ref ${{ github.ref }}
echo github.ref_name ${{ github.ref_name }}
- name: Checkout PR branch
uses: actions/checkout@v4
with:
Expand Down

0 comments on commit 9ce7100

Please sign in to comment.