Skip to content

Commit

Permalink
feat(github-actions): use checkout actions filter argument (#1413)
Browse files Browse the repository at this point in the history
Use the filter argument in the checkout actions to allow for all commit messages to be checked out without requiring full depth checkouts of the commits.

PR Close #1413
  • Loading branch information
josephperrott committed Sep 27, 2023
1 parent b2dda13 commit 76c632f
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions github-actions/npm/checkout-and-setup-node/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ name: 'Checkout and Setup Node'
description: 'Checks out the repository and sets up node environment.'
author: 'Angular'
inputs:
fetch-depth:
default: 0
description: |
The number of commits to include in the fetch, defaulting to all commits in the history
of the repository
ref:
description: |
The branch, tag or SHA to checkout. Defaults to allowing actions/checkout to determine the ref.
Expand Down Expand Up @@ -40,9 +34,9 @@ runs:
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
with:
ref: ${{ inputs.ref }}
fetch-depth: ${{ inputs.fetch-depth }}
filter: blob:none
persist-credentials: false
ref: ${{ inputs.ref }}

- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
Expand Down

0 comments on commit 76c632f

Please sign in to comment.