fix: error fetch remote ref when using fetch depth of 1 (#996)

This commit is contained in:
Tonye Jack
2023-02-20 11:39:52 -07:00
committed by GitHub
parent 063e674726
commit 23e3c4300c
3 changed files with 27 additions and 12 deletions

View File

@@ -439,16 +439,9 @@ jobs:
with:
fetch-depth: 0
- name: Get Base SHA
id: get-base-sha
run: |
echo "base_sha=$(git rev-parse "$(git tag --sort=-v:refname | head -n 2 | tail -n 1)")" >> $GITHUB_OUTPUT
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v35
with:
base_sha: ${{ steps.get-base-sha.outputs.base_sha }}
- name: Get changed files in the .github folder
id: changed-files-specific