/
githubmirror
/
ydb-go-sdk
Обзор
Документация
Войти
/
githubmirror
/
ydb-go-sdk
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
.github/workflows/breaking.yml
36 строк
1 KB
Konstantin Prokopenko
Backward Compatibility Protection: Mandatory Breaking Changes Check (#1923)
30 окт 2025, 16:57
Не верифицирован
30 окт 2025, 16:57
f90a68f
Код
Авторство
О чём код?
# This script is provided by github.com/bool64/dev. name: breaking on: pull_request: env: GO111MODULE: "on" jobs: broken-changes: concurrency: group: broken-changes-${{ github.ref }} cancel-in-progress: true if: (!contains(github.event.pull_request.labels.*.name, 'broken changes')) runs-on: ubuntu-latest permissions: pull-requests: write contents: read steps: - name: Install Go uses: actions/setup-go@v5 with: go-version: "1.24" - name: Checkout code uses: actions/checkout@v4 - name: Install gorelease run: test -e ~/go/bin/gorelease || go install golang.org/x/exp/cmd/gorelease@latest - name: Check broken API changes run: set -o pipefail && gorelease | tee changes.txt # Skip comment for forks - GITHUB_TOKEN doesn't have write permissions for external PRs - name: Comment Report if: always() && github.event.pull_request.head.repo.full_name == github.repository uses: marocchino/sticky-pull-request-comment@v2 with: path: changes.txt GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} header: gorelease