Skip to content

Commit

Permalink
Use older version of actions/checkout (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
walkowif authored Apr 23, 2024
1 parent 4109956 commit e41f387
Show file tree
Hide file tree
Showing 19 changed files with 51 additions and 51 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/audit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ jobs:
uses: tj-actions/branch-names@v7

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

- name: Checkout repo 🛎
uses: actions/checkout@v4
uses: actions/checkout@v4.1.1
if: github.event_name != 'pull_request'
with:
ref: ${{ steps.branch-name.outputs.head_ref_branch }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/bioccheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@ jobs:
uses: tj-actions/branch-names@v7

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

- name: Checkout repo 🛎
uses: actions/checkout@v4
uses: actions/checkout@v4.1.1
if: github.event_name != 'pull_request'
with:
ref: ${{ steps.branch-name.outputs.head_ref_branch }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/branch-cleanup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
shell: bash

- name: Checkout Code 🛎
uses: actions/checkout@v4
uses: actions/checkout@v4.1.1

- name: Cleanup branches 🌿
uses: phpdocker-io/github-actions-delete-abandoned-branches@v1
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/build-check-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ jobs:
uses: tj-actions/branch-names@v7

- name: Checkout repo (PR) 🛎
uses: actions/checkout@v4
uses: actions/checkout@v4.1.1
if: github.event_name == 'pull_request'
with:
ref: ${{ steps.branch-name.outputs.head_ref_branch }}
Expand All @@ -240,7 +240,7 @@ jobs:
fetch-depth: 0

- name: Checkout repo 🛎
uses: actions/checkout@v4
uses: actions/checkout@v4.1.1
if: github.event_name != 'pull_request'
with:
ref: ${{ steps.branch-name.outputs.head_ref_branch }}
Expand All @@ -265,7 +265,7 @@ jobs:
inputs.publish-unit-test-report-gh-pages == true
&& github.event_name != 'pull_request'
id: checkout-gh-pages
uses: actions/checkout@v4
uses: actions/checkout@v4.1.1
with:
ref: gh-pages
path: gh-pages
Expand Down Expand Up @@ -488,7 +488,7 @@ jobs:

- name: Fetch report from ${{ env.junit_xml_storage }} ⤵️
if: env.junit_xml_comparison == 'true'
uses: actions/checkout@v4
uses: actions/checkout@v4.1.1
with:
path: ${{ env.junit_xml_storage }}
fetch-depth: 0
Expand Down Expand Up @@ -587,7 +587,7 @@ jobs:

- name: Fetch JUnit XML reports from ${{ env.junit_xml_storage }} ⤵️
if: steps.check-junit-xml.outputs.files_exists == 'true' && env.junit_xml_comparison == 'true'
uses: actions/checkout@v4
uses: actions/checkout@v4.1.1
with:
path: ${{ env.junit_xml_storage }}
fetch-depth: 0
Expand Down Expand Up @@ -858,7 +858,7 @@ jobs:
steps:
- name: Checkout repo 🛎
uses: actions/checkout@v4
uses: actions/checkout@v4.1.1

- name: Get package build filename 📦
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/gitleaks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ jobs:
uses: tj-actions/branch-names@v7

- name: Checkout repo (PR) 🛎
uses: actions/checkout@v4
uses: actions/checkout@v4.1.1
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 repo 🛎
uses: actions/checkout@v4
uses: actions/checkout@v4.1.1
if: github.event_name != 'pull_request'
with:
ref: ${{ steps.branch-name.outputs.head_ref_branch }}
Expand Down Expand Up @@ -103,15 +103,15 @@ jobs:
uses: tj-actions/branch-names@v7

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

- name: Checkout repo 🛎
uses: actions/checkout@v4
uses: actions/checkout@v4.1.1
if: github.event_name != 'pull_request'
with:
ref: ${{ steps.branch-name.outputs.head_ref_branch }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/grammar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ jobs:
uses: tj-actions/branch-names@v7

- name: Checkout repo (PR) 🛎
uses: actions/checkout@v4
uses: actions/checkout@v4.1.1
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 repo 🛎
uses: actions/checkout@v4
uses: actions/checkout@v4.1.1
if: github.event_name != 'pull_request'
with:
ref: ${{ steps.branch-name.outputs.head_ref_branch }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/licenses.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ jobs:
uses: tj-actions/branch-names@v7

- name: Checkout repo (PR) 🛎
uses: actions/checkout@v4
uses: actions/checkout@v4.1.1
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 repo 🛎
uses: actions/checkout@v4
uses: actions/checkout@v4.1.1
if: github.event_name != 'pull_request'
with:
ref: ${{ steps.branch-name.outputs.head_ref_branch }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/links.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ jobs:
uses: tj-actions/branch-names@v7

- name: Checkout repo (PR) 🛎
uses: actions/checkout@v4
uses: actions/checkout@v4.1.1
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 repo 🛎
uses: actions/checkout@v4
uses: actions/checkout@v4.1.1
if: github.event_name != 'pull_request'
with:
ref: ${{ steps.branch-name.outputs.head_ref_branch }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/linter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ jobs:
uses: tj-actions/branch-names@v7

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

- name: Checkout repo 🛎
uses: actions/checkout@v4
uses: actions/checkout@v4.1.1
if: github.event_name != 'pull_request'
with:
ref: ${{ steps.branch-name.outputs.head_ref_branch }}
Expand Down Expand Up @@ -121,14 +121,14 @@ jobs:

steps:
- name: Checkout repo (PR) 🛎
uses: actions/checkout@v4
uses: actions/checkout@v4.1.1
if: github.event_name == 'pull_request'
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0

- name: Checkout repo 🛎
uses: actions/checkout@v4
uses: actions/checkout@v4.1.1
if: github.event_name != 'pull_request'
with:
fetch-depth: 0
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,15 @@ jobs:
shell: bash

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

- name: Checkout repo 🛎
uses: actions/checkout@v4
uses: actions/checkout@v4.1.1
if: github.event_name != 'pull_request'
with:
ref: ${{ steps.branch-name.outputs.head_ref_branch }}
Expand Down Expand Up @@ -243,7 +243,7 @@ jobs:

- name: Checkout gh-pages 🛎
if: startsWith(github.ref, 'refs/tags/v') || github.event_name == 'push'
uses: actions/checkout@v4
uses: actions/checkout@v4.1.1
with:
path: "gh-pages"
fetch-depth: 0
Expand Down Expand Up @@ -300,7 +300,7 @@ jobs:
&& !contains(github.event.commits[0].message, '[skip docs]')
steps:
- name: Checkout repo 🛎
uses: actions/checkout@v4
uses: actions/checkout@v4.1.1
with:
path: ${{ github.event.repository.name }}
ref: "gh-pages"
Expand Down Expand Up @@ -336,7 +336,7 @@ jobs:
&& !contains(github.event.commits[0].message, '[skip docs]')
steps:
- name: Checkout repo 🛎
uses: actions/checkout@v4
uses: actions/checkout@v4.1.1

- name: Download artifact ⏬
uses: actions/download-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
shell: bash

- name: Checkout repo 🛎
uses: actions/checkout@v4
uses: actions/checkout@v4.1.1

- name: Check commit message 💬
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/roxygen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
uses: tj-actions/branch-names@v7

- name: Checkout repo (PR) 🛎
uses: actions/checkout@v4
uses: actions/checkout@v4.1.1
if: github.event_name == 'pull_request'
with:
ref: ${{ steps.branch-name.outputs.head_ref_branch }}
Expand All @@ -88,7 +88,7 @@ jobs:
token: ${{ steps.github-token.outputs.token }}

- name: Checkout repo 🛎
uses: actions/checkout@v4
uses: actions/checkout@v4.1.1
if: github.event_name != 'pull_request'
with:
ref: ${{ steps.branch-name.outputs.head_ref_branch }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/spelling.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
uses: tj-actions/branch-names@v7

- name: Checkout repo (PR) 🛎
uses: actions/checkout@v4
uses: actions/checkout@v4.1.1
if: github.event_name == 'pull_request'
with:
ref: ${{ steps.branch-name.outputs.head_ref_branch }}
Expand All @@ -72,7 +72,7 @@ jobs:
token: ${{ steps.github-token.outputs.token }}

- name: Checkout repo 🛎
uses: actions/checkout@v4
uses: actions/checkout@v4.1.1
if: github.event_name != 'pull_request'
with:
ref: ${{ steps.branch-name.outputs.head_ref_branch }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/style.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
uses: tj-actions/branch-names@v7

- name: Checkout repo (PR) 🛎
uses: actions/checkout@v4
uses: actions/checkout@v4.1.1
if: github.event_name == 'pull_request'
with:
ref: ${{ steps.branch-name.outputs.head_ref_branch }}
Expand All @@ -74,7 +74,7 @@ jobs:
token: ${{ steps.github-token.outputs.token }}

- name: Checkout repo 🛎
uses: actions/checkout@v4
uses: actions/checkout@v4.1.1
if: github.event_name != 'pull_request'
with:
ref: ${{ steps.branch-name.outputs.head_ref_branch }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ jobs:
github.event_name != 'pull_request'
&& inputs.publish-coverage-report-gh-pages == true
id: checkout-gh-pages
uses: actions/checkout@v4
uses: actions/checkout@v4.1.1
with:
ref: gh-pages
path: gh-pages
Expand Down Expand Up @@ -167,15 +167,15 @@ jobs:
shell: bash

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

- name: Checkout repo 🛎
uses: actions/checkout@v4
uses: actions/checkout@v4.1.1
if: github.event_name != 'pull_request'
with:
ref: ${{ steps.branch-name.outputs.head_ref_branch }}
Expand Down Expand Up @@ -333,15 +333,15 @@ jobs:
uses: tj-actions/branch-names@v7

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

- name: Checkout repo 🛎
uses: actions/checkout@v4
uses: actions/checkout@v4.1.1
if: github.event_name != 'pull_request'
with:
ref: ${{ steps.branch-name.outputs.head_ref_branch }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@ jobs:
uses: tj-actions/branch-names@v7

- name: Checkout repo (PR) 🛎
uses: actions/checkout@v4
uses: actions/checkout@v4.1.1
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 repo 🛎
uses: actions/checkout@v4
uses: actions/checkout@v4.1.1
if: github.event_name != 'pull_request'
with:
ref: ${{ steps.branch-name.outputs.head_ref_branch }}
Expand Down Expand Up @@ -148,7 +148,7 @@ jobs:
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: Checkout repo 🛎
uses: actions/checkout@v4
uses: actions/checkout@v4.1.1

- name: Download artifact ⏬
uses: actions/download-artifact@v4
Expand Down
Loading

0 comments on commit e41f387

Please sign in to comment.