File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 45
45
if : ${{ (startsWith(inputs.os, 'amazon') && inputs.version == '2' ) }}
46
46
run : |
47
47
git clone https://github.com/${GITHUB_REPOSITORY}.git .
48
- git config --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/prh/*"
49
- git config --add remote.origin.fetch "+refs/pull/*/merge:refs/remotes/origin/prm/*"
50
- git fetch origin
48
+ if [ "$GITHUB_EVENT_NAME" == "pull_request" ]; then
49
+ git config --add remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
50
+ git config --add remote.origin.fetch "+refs/tags/*:refs/tags/*"
51
+ git config --add remote.origin.fetch "+${GITHUB_SHA}:${GITHUB_REF}"
52
+ fi
53
+ git fetch --prune origin
51
54
git checkout ${GITHUB_SHA}
52
55
- name : Set output variables
53
56
id : vars
You can’t perform that action at this time.
0 commit comments