Skip to content

Commit

Permalink
chore(ci): skip workflows on forks (#10892)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBarre committed Nov 12, 2022
1 parent c1368c3 commit ce24c7c
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Expand Up @@ -97,6 +97,7 @@ jobs:
run: pnpm run test-docs

lint:
if: github.repository == 'vitejs/vite'
timeout-minutes: 10
runs-on: ubuntu-latest
name: "Lint: node-16, ubuntu-latest"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ecosystem-ci-trigger.yml
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
trigger:
runs-on: ubuntu-latest
if: github.event.issue.pull_request && startsWith(github.event.comment.body, '/ecosystem-ci run')
if: github.repository == 'vitejs/vite' && github.event.issue.pull_request && startsWith(github.event.comment.body, '/ecosystem-ci run')
steps:
- uses: actions/github-script@v6
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/issue-close-require.yml
Expand Up @@ -6,6 +6,7 @@ on:

jobs:
close-issues:
if: github.repository == 'vitejs/vite'
runs-on: ubuntu-latest
steps:
- name: need reproduction
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/issue-labeled.yml
Expand Up @@ -6,6 +6,7 @@ on:

jobs:
reply-labeled:
if: github.repository == 'vitejs/vite'
runs-on: ubuntu-latest
steps:
- name: contribution welcome
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/lock-closed-issues.yml
Expand Up @@ -9,6 +9,7 @@ permissions:

jobs:
action:
if: github.repository == 'vitejs/vite'
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v3
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release-tag.yml
Expand Up @@ -11,6 +11,7 @@ on:

jobs:
release:
if: github.repository == 'vitejs/vite'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/semantic-pull-request.yml
Expand Up @@ -9,6 +9,7 @@ on:

jobs:
main:
if: github.repository == 'vitejs/vite'
runs-on: ubuntu-latest
name: Semantic Pull Request
steps:
Expand Down

0 comments on commit ce24c7c

Please sign in to comment.