Skip to content

Commit

Permalink
ci: 工作流增加前置条件
Browse files Browse the repository at this point in the history
  • Loading branch information
oljc committed May 10, 2024
1 parent 77a6202 commit a714169
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:

jobs:
lint:
if: github.repository == 'oljc/arco-admin'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -26,6 +27,7 @@ jobs:
run: pnpm run lint

type_check:
if: github.repository == 'oljc/arco-admin'
runs-on: ubuntu-latest
needs: lint
steps:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:

jobs:
release:
if: github.repository == 'oljc/arco-admin'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit a714169

Please sign in to comment.