Skip to content

Commit

Permalink
Revert to using fetch-depth
Browse files Browse the repository at this point in the history
  • Loading branch information
bennettgoble committed Sep 19, 2022
1 parent c2df73c commit ad9b1b4
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,8 @@ runs:
- name: Checkout
uses: actions/checkout@v3
if: inputs.checkout

# Checkout tags for SCM version support
- name: Checkout tags
if: inputs.checkout
shell: bash
run: |
git fetch --prune --unshallow
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
with:
fetch-depth: 0 # Fetch all history for SCM version

# Work around the fact that in the context of a pull request github.sha
# references a dynamic merge commit rather than the branch head
Expand Down

0 comments on commit ad9b1b4

Please sign in to comment.