Skip to content

Commit 3260521

Browse files
authored
fix: hardcode base ref (#215)
1 parent 7d9411a commit 3260521

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/autoupdate-prod.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
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

tools/releaser/scripts/breaking-changes.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ script_path=$(dirname "$0")
1111
echo "Installing go-apidiff"
1212
go 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"
1517
BREAKING_CHANGES=$("$GOPATH/bin/go-apidiff" "$GIT_BASE_REF" --compare-imports="false" --print-compatible="false" --repo-path="../")
1618

1719
if [ -z "$BREAKING_CHANGES" ]; then

0 commit comments

Comments
 (0)