File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 2020 with :
2121 ref : ${{github.event.pull_request.head.ref}}
2222 repository : ${{github.event.pull_request.head.repo.full_name}}
23- fetch-depth : 0
23+
24+ - name : Add upstream remote
25+ run : |
26+ git remote add upstream https://github.com/${{ github.repository }}
27+ git fetch upstream
2428
2529 - name : Setup Julia
2630 uses : julia-actions/setup-julia@v2
3943 - name : Run Runic
4044 id : runic
4145 run : |
42- set +e
43- MERGE_BASE=$(git merge-base origin/${{ github.base_ref }} HEAD) || exit 2
46+ set +e -x
47+ echo "base ref: ${{ github.base_ref }}"
48+ echo "upstream/master: $(git show-ref upstream/master)"
49+ echo "merge-base: $(git merge-base upstream/${{ github.base_ref }} HEAD)"
50+ MERGE_BASE=$(git merge-base upstream/${{ github.base_ref }} HEAD) || exit 1
51+ echo "merge base var: $MERGE_BASE"
4452 DIFF=$(git runic --diff $MERGE_BASE)
53+ echo "diff: $DIFF"
4554 EXIT_CODE=$?
4655
4756 echo "exit_code=$EXIT_CODE" >> $GITHUB_OUTPUT
You can’t perform that action at this time.
0 commit comments