Merge pull request #2517 from EffortlessMetrics/publish/swarm-analysi… #289
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: Badge Endpoints | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| env: | |
| RIPR_VERSION: "0.7.0" | |
| concurrency: | |
| group: badge-endpoints-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| refresh: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6.0.2 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| cache-on-failure: true | |
| - name: Install ripr | |
| run: cargo install ripr --version "$RIPR_VERSION" --locked | |
| - name: Refresh badge endpoints | |
| run: cargo xtask badges | |
| - name: Open badge refresh PR | |
| uses: peter-evans/create-pull-request@v8 | |
| with: | |
| branch: automation/badge-endpoints | |
| title: "badge: refresh public endpoints" | |
| commit-message: "badge: refresh public endpoints" | |
| body: | | |
| Refreshes generated Shields endpoint JSON under `badges/`. | |
| Generated by: | |
| ```bash | |
| cargo xtask badges | |
| ``` |