ci(deps): bump dtolnay/rust-toolchain in the all group (#193) #114
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: Release-plz | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| toolchain: | |
| name: Setup Rust toolchain | |
| runs-on: ubuntu-latest | |
| outputs: | |
| toolchain: ${{steps.set_toolchain.outputs.toolchain}} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Output toolchain | |
| id: set_toolchain | |
| env: | |
| toolchain_toml: "rust-toolchain.toml" | |
| run: | | |
| toolchain=$(grep channel rust-toolchain.toml | sed -r 's/channel = "(.*)"/\1/') | |
| echo "toolchain=$toolchain" | tee -a "$GITHUB_OUTPUT" | |
| release-plz: | |
| name: Run release-plz | |
| runs-on: ubuntu-latest | |
| needs: toolchain | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9 | |
| with: | |
| toolchain: ${{needs.toolchain.outputs.toolchain}} | |
| - name: Run release-plz | |
| uses: MarcoIeni/release-plz-action@1528104d2ca23787631a1c1f022abb64b34c1e11 # v0.5.128 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN }} | |
| CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} |