File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 3333 if : steps.verify-changed-files.outputs.files_changed == 'true'
3434 working-directory : ./tools
3535 env :
36- GIT_BASE_REF : ${{ github.event.pull_request.base.sha || github.event.merge_group.base_sha }}
36+ GIT_BASE_REF : origin/main
3737 run : |
3838 make new-release
3939 - uses : peter-evans/create-pull-request@v5
Original file line number Diff line number Diff line change @@ -11,7 +11,9 @@ script_path=$(dirname "$0")
1111echo " Installing go-apidiff"
1212go install github.com/joelanford/go-apidiff@latest
1313
14- echo " Running breaking changes check"
14+ GIT_BASE_REF=${GIT_BASE_REF:- " origin/main" }
15+
16+ echo " Running breaking changes check for $GIT_BASE_REF "
1517BREAKING_CHANGES=$( " $GOPATH /bin/go-apidiff" " $GIT_BASE_REF " --compare-imports=" false" --print-compatible=" false" --repo-path=" ../" )
1618
1719if [ -z " $BREAKING_CHANGES " ]; then
You can’t perform that action at this time.
0 commit comments