Merge pull request #761 from tj-actions/chorw/update-test
chore: fixed test
This commit is contained in:
commit
338a11e8c5
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@ -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:
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user