chore(deps): bump pyasn1 from 0.6.1 to 0.6.2 in /perfmetrics/scripts/micro_benchmarks #986
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: Generate and Format | |
| on: | |
| pull_request: | |
| # Ensure that only the latest run for a given pull request is active. | |
| concurrency: | |
| # The group is the pull request number. | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| build_patch: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: '.go-version' | |
| - name: Install dependencies | |
| run: go install golang.org/x/tools/cmd/goimports@latest | |
| - name: Run formatters | |
| run: make fmt | |
| - name: Generate patch | |
| run: | | |
| # Create a patch file only if there are any changes. | |
| git diff --quiet || git diff > auto_fixes.patch | |
| - name: Upload patch artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: auto-fixes-patch | |
| path: auto_fixes.patch | |
| if-no-files-found: ignore |