Skip to content

Commit f90a68f

Browse files
authored
Backward Compatibility Protection: Mandatory Breaking Changes Check (#1923)
1 parent 43ab32b commit f90a68f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/breaking.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
concurrency:
1111
group: broken-changes-${{ github.ref }}
1212
cancel-in-progress: true
13+
if: (!contains(github.event.pull_request.labels.*.name, 'broken changes'))
1314
runs-on: ubuntu-latest
1415
permissions:
1516
pull-requests: write
@@ -24,9 +25,7 @@ jobs:
2425
- name: Install gorelease
2526
run: test -e ~/go/bin/gorelease || go install golang.org/x/exp/cmd/gorelease@latest
2627
- name: Check broken API changes
27-
run: gorelease -base=$GITHUB_BASE_REF 2>&1 > changes.txt | true
28-
- name: Print API changes
29-
run: cat changes.txt
28+
run: set -o pipefail && gorelease | tee changes.txt
3029
# Skip comment for forks - GITHUB_TOKEN doesn't have write permissions for external PRs
3130
- name: Comment Report
3231
if: always() && github.event.pull_request.head.repo.full_name == github.repository

0 commit comments

Comments
 (0)