From 56829765fa550f5fdcf9bb6c14f3560262c34d6f Mon Sep 17 00:00:00 2001 From: Sergei Zharinov Date: Thu, 4 Dec 2025 03:18:23 -0300 Subject: [PATCH 1/2] chore: Pin actions --- .github/workflows/release.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f6a66185..6b0992e7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,12 +16,12 @@ jobs: uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 - name: Install Rust stable - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@6d9817901c499d6b02debbb57edb38d33daa680b # stable with: components: clippy - name: Using Rust cache - uses: Swatinem/rust-cache@v2 + uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2 with: cache-all-crates: "true" @@ -42,10 +42,10 @@ jobs: uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 - name: Install Rust stable - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@6d9817901c499d6b02debbb57edb38d33daa680b # stable - name: Publish to crates.io - uses: katyo/publish-crates@v2 + uses: katyo/publish-crates@02cc2f1ad653fb25c7d1ff9eb590a8a50d06186b # v2 with: registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} @@ -59,6 +59,6 @@ jobs: uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 - name: Create GitHub Release - uses: softprops/action-gh-release@v2 + uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0 with: - generate_release_notes: true + generate_release_notes: true \ No newline at end of file From 396f0cb69f920bc405e56e0d33012f202d88d447 Mon Sep 17 00:00:00 2001 From: Sergei Zharinov Date: Thu, 4 Dec 2025 03:23:45 -0300 Subject: [PATCH 2/2] Add check-publish job to CI workflow --- .github/workflows/stable.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/stable.yml b/.github/workflows/stable.yml index 84e9f4ff..474943f1 100644 --- a/.github/workflows/stable.yml +++ b/.github/workflows/stable.yml @@ -45,6 +45,22 @@ jobs: - name: Test run: cargo test --workspace + check-publish: + runs-on: ubuntu-latest + needs: test + if: github.ref == 'refs/heads/master' && github.event_name == 'push' + steps: + - name: Checkout + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + + - name: Install Rust stable + uses: dtolnay/rust-toolchain@stable + + - name: Using Rust cache + uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2 + with: + prefix-key: v0-rust-stable + - name: Check publishable uses: katyo/publish-crates@v2 with: