File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed
Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -15,20 +15,18 @@ jobs:
1515
1616 - name : Set Base and Head Refs
1717 run : |
18- BASE_REF="${{ github.event.pull_request.base.sha }}"
19- HEAD_REF="${{ github.event.pull_request.head.sha }}"
20- BASE_REMOTE="${{github.event.pull_request.base.repo.clone_url}}"
21- HEAD_REMOTE="${{github.event.pull_request.head.repo.clone_url}}"
22-
23- echo "BASE_REF=$BASE_REF" >> $GITHUB_ENV
24- echo "HEAD_REF=$HEAD_REF" >> $GITHUB_ENV
25- echo "BASE_REMOTE=$BASE_REMOTE" >> $GITHUB_ENV
26- echo "HEAD_REMOTE=$HEAD_REMOTE" >> $GITHUB_ENV
18+ echo "BASE_REF=${{ github.event.pull_request.base.ref }}" >> $GITHUB_ENV
19+ echo "HEAD_REF=${{ github.event.pull_request.head.ref }}" >> $GITHUB_ENV
20+ echo "BASE_REMOTE=${{github.event.pull_request.base.repo.clone_url}}" >> $GITHUB_ENV
21+ echo "HEAD_REMOTE=${{github.event.pull_request.head.repo.clone_url}}" >> $GITHUB_ENV
2722
2823 - name : Fetch Branches
2924 run : |
30- git fetch ${BASE_REMOTE} ${BASE_REF}
31- git fetch ${HEAD_REMOTE} ${HEAD_REF}
25+ git remote add base $BASE_REMOTE
26+ git fetch base $BASE_REF
27+
28+ git remote add head $HEAD_REMOTE
29+ git fetch head $HEAD_REF
3230
3331 - name : Detect Added Submodules
3432 run : |
You can’t perform that action at this time.
0 commit comments