github.com/ydb-platform/ydb-go-sdk/v3@v3.89.2/.github/workflows/breaking.yml (about)

     1  # This script is provided by github.com/bool64/dev.
     2  name: breaking
     3  on:
     4    pull_request:
     5  env:
     6    GO111MODULE: "on"
     7  
     8  jobs:
     9    broken-changes:
    10      concurrency:
    11        group: broken-changes-${{ github.ref }}
    12        cancel-in-progress: true
    13      runs-on: ubuntu-latest
    14      permissions: 
    15        pull-requests: write
    16        contents: read
    17      steps:
    18        - name: Install Go
    19          uses: actions/setup-go@v5
    20          with:
    21            go-version: "1.23"
    22        - name: Checkout code
    23          uses: actions/checkout@v4
    24        - name: Install gorelease
    25          run: test -e ~/go/bin/gorelease || go install golang.org/x/exp/cmd/gorelease@latest
    26        - 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
    30        - name: Comment Report
    31          if: always()
    32          uses: marocchino/sticky-pull-request-comment@v2
    33          with:
    34            path: changes.txt
    35            GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    36            header: gorelease