Skip to content

Commit

Permalink
fix: Use actions/checkout@v3 for consistency (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
cicdguy authored Apr 23, 2024
1 parent dad7fc8 commit 03a4d82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/r-cmd-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ jobs:
uses: tj-actions/branch-names@v8

- name: Checkout repo (PR) 🛎
uses: actions/checkout@v4
uses: actions/checkout@v3
if: |
github.event_name == 'pull_request'
with:
ref: ${{ steps.branch-name.outputs.head_ref_branch }}
repository: ${{ github.event.pull_request.head.repo.full_name }}

- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v3
if: |
github.event_name != 'pull_request'
with:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/readme-render.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,15 @@ jobs:
uses: tj-actions/[email protected]

- name: Checkout repo (PR) 🛎
uses: actions/checkout@v4
uses: actions/checkout@v3
if: github.event_name == 'pull_request'
with:
ref: ${{ steps.branch-name.outputs.head_ref_branch }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
token: "${{ secrets.PHARMAVERSE_BOT }}"


- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v3
if: github.event_name != 'pull_request'
with:
ref: ${{ steps.branch-name.outputs.head_ref_branch }}
Expand Down

0 comments on commit 03a4d82

Please sign in to comment.