You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@casbin.apache.org by hs...@apache.org on 2026/06/27 02:59:11 UTC

(casbin-sqlx-adapter) branch master updated: fix: replace disallowed GitHub Actions with shell commands in CI

This is an automated email from the ASF dual-hosted git repository.

hsluoyz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/casbin-sqlx-adapter.git


The following commit(s) were added to refs/heads/master by this push:
     new b0fd578  fix: replace disallowed GitHub Actions with shell commands in CI
b0fd578 is described below

commit b0fd578021e9eeef161b3f15c36ea1bfdb722b84
Author: Yang Luo <hs...@gmail.com>
AuthorDate: Sat Jun 27 10:59:04 2026 +0800

    fix: replace disallowed GitHub Actions with shell commands in CI
---
 .github/workflows/ci.yml       | 8 ++++----
 .github/workflows/coverage.yml | 8 ++++----
 .github/workflows/release.yml  | 6 +++---
 3 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index b603188..7041c71 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -19,10 +19,10 @@ jobs:
         uses: actions/checkout@v4
 
       - name: Install Rust toolchain
-        uses: dtolnay/rust-toolchain@stable
-        with:
-          toolchain: stable
-          components: rustfmt, clippy
+        run: |
+          rustup update stable
+          rustup default stable
+          rustup component add rustfmt clippy
           
       - name: Cargo Clippy
         run: cargo clippy -- -D warnings
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml
index b2c259b..8a0209a 100644
--- a/.github/workflows/coverage.yml
+++ b/.github/workflows/coverage.yml
@@ -29,7 +29,9 @@ jobs:
         uses: actions/checkout@v4
 
       - name: Install Rust toolchain
-        uses: dtolnay/rust-toolchain@stable
+        run: |
+          rustup update stable
+          rustup default stable
       
       - name: Install PostgreSQL Dependencies
         run: sudo apt-get install libpq-dev postgresql-client
@@ -48,9 +50,7 @@ jobs:
             );"
 
       - name: Install cargo-tarpaulin
-        uses: baptiste0928/cargo-install@v3
-        with:
-          crate: cargo-tarpaulin
+        run: cargo install cargo-tarpaulin
 
       - name: Run cargo-tarpaulin
         env:
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index e8ae3e8..f56a6d5 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -28,6 +28,6 @@ jobs:
         run: cargo publish
 
       - name: GitHub Release
-        uses: softprops/action-gh-release@v2
-        with:
-          token: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
+        run: gh release create ${{ github.ref_name }} --title "Release ${{ github.ref_name }}" --generate-notes
+        env:
+          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@casbin.apache.org
For additional commands, e-mail: commits-help@casbin.apache.org