Skip to content

Commit

Permalink
chore(ci): add condition for auto release
Browse files Browse the repository at this point in the history
  • Loading branch information
liulifox233 committed Feb 4, 2025
1 parent 3eb997b commit 14b2720
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
name: Auto Release

on:
push:
branches:
- master
- next
- next-major
- beta
- alpha
- "[0-9]+.[0-9]+.x"
- "[0-9]+.x"
workflow_run:
workflows: ["CI"]
types: [completed]

jobs:
release:
if: github.repository == 'casbin/casbin-rs'
if: ${{ github.repository == 'casbin/casbin-rs' && github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'push'}}
uses: casbin-rs/semantic-release-action-rust/.github/workflows/release-library.yml@master
secrets:
cargo-registry-token: ${{ secrets.CARGO_TOKEN }}

0 comments on commit 14b2720

Please sign in to comment.