Merge pull request #761 from tj-actions/chorw/update-test

chore: fixed test
This commit is contained in:
Tonye Jack 2022-11-04 19:07:10 -06:00 committed by GitHub
commit 338a11e8c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -899,10 +899,12 @@ jobs:
bash bash
- name: Run changed-files with custom sha - name: Run changed-files with custom sha
id: changed-files-custom-sha id: changed-files-custom-sha
if: github.event.action != 'closed'
uses: ./ uses: ./
with: with:
sha: ${{ github.event.pull_request.head.sha }} sha: ${{ github.event.pull_request.head.sha }}
- name: Show output - name: Show output
if: github.event.action != 'closed'
run: | run: |
echo '${{ toJSON(steps.changed-files-custom-sha.outputs) }}' echo '${{ toJSON(steps.changed-files-custom-sha.outputs) }}'
shell: shell:

View File

@ -135,7 +135,7 @@ else
echo "Fetching remote refs..." echo "Fetching remote refs..."
git fetch --depth="$INPUT_FETCH_DEPTH" origin +refs/heads/"$TARGET_BRANCH":refs/remotes/origin/"$TARGET_BRANCH" git fetch --depth="$INPUT_FETCH_DEPTH" origin +refs/heads/"$TARGET_BRANCH":refs/remotes/origin/"$TARGET_BRANCH"
git branch --track "$TARGET_BRANCH" origin/"$TARGET_BRANCH" || true git branch --track "$TARGET_BRANCH" origin/"$TARGET_BRANCH" 2>/dev/null || true
depth=$INPUT_FETCH_DEPTH depth=$INPUT_FETCH_DEPTH