fix: parse clang-tidy output when WarningsAsErrors is asserted
          
            #414
        
      Workflow file for this run
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | name: Bump-n-Release | |
| # NOTE: The change log is only updated in the remote upon release (in `bump-release` job) | |
| on: | |
| push: | |
| branches: | |
| - "main" | |
| pull_request: | |
| branches: | |
| - "main" | |
| workflow_dispatch: | |
| inputs: | |
| component: | |
| description: The version component to increase | |
| type: choice | |
| required: true | |
| default: patch | |
| options: | |
| - major | |
| - minor | |
| - patch | |
| - rc | |
| jobs: | |
| bump-release: | |
| if: github.event_name == 'workflow_dispatch' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| token: ${{ secrets.BUMP_N_RELEASE }} | |
| fetch-depth: 0 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: 3.x | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version: 20.x | |
| - run: yarn install | |
| - run: yarn global add @napi-rs/cli | |
| - uses: cargo-bins/cargo-binstall@main | |
| - run: cargo binstall -y git-cliff | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| - name: Bump ${{ inputs.component }} version | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.BUMP_N_RELEASE }} | |
| GH_TOKEN: ${{ secrets.BUMP_N_RELEASE }} | |
| run: python .github/workflows/bump_version.py ${{ inputs.component }} | |
| id: tagged | |
| update-changelog: | |
| if: github.event_name != 'workflow_dispatch' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Generate a changelog | |
| uses: orhun/git-cliff-action@v4 | |
| id: git-cliff | |
| with: | |
| config: .config/cliff.toml | |
| args: --unreleased | |
| env: | |
| OUTPUT: ${{ runner.temp }}/changes.md | |
| GITHUB_REPO: ${{ github.repository }} | |
| - run: cat "${{ runner.temp }}/changes.md" >> "$GITHUB_STEP_SUMMARY" |