Skip to content

Commit

Permalink
feat: fix CI bug (#343)
Browse files Browse the repository at this point in the history
* fix: fix workflow skip cause by error repository_owner

* fix: remove workflow_dispatch to make release run automatically
  • Loading branch information
dacongda authored Feb 17, 2024
1 parent 4879705 commit 799348a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 93 deletions.
83 changes: 0 additions & 83 deletions .github/workflows/push.yml

This file was deleted.

10 changes: 2 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
name: Release

on:
push:
branches:
- master
- main
- 1.x
workflow_dispatch:
on: push

env:
SHA: ${{ GITHUB.SHA }}
Expand Down Expand Up @@ -97,7 +91,7 @@ jobs:
push-packages:
runs-on: windows-latest
needs: run-semantic-release
if: github.repository_owner == 'casdoor' && github.event_name == 'push'
if: github.repository_owner == 'casbin' && github.event_name == 'push'

steps:
- name: Checkout
Expand Down
3 changes: 1 addition & 2 deletions Casbin.NET.sln
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
azure-pipelines.yml = azure-pipelines.yml
.github\workflows\build.yml = .github\workflows\build.yml
Casbin.NET.sln.DotSettings = Casbin.NET.sln.DotSettings
global.json = global.json
LICENSE = LICENSE
README.md = README.md
.github\workflows\release.yml = .github\workflows\release.yml
global.json = global.json
.github\workflows\push.yml = .github\workflows\push.yml
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Casbin.Benchmark", "Casbin.Benchmark\Casbin.Benchmark.csproj", "{1DBC2931-4981-4DB5-A30B-FF6EB8622B04}"
Expand Down

0 comments on commit 799348a

Please sign in to comment.