Make GitHub Actions can only run in the original repository.

This commit is contained in:
LearningPawn
2022-11-04 09:27:36 +08:00
parent 5490bb1f13
commit 3c92b6ba85
3 changed files with 6 additions and 0 deletions

View File

@@ -17,6 +17,8 @@ on:
jobs:
# This workflow contains a single job called "build"
build:
# Only run job for specific repository
if: github.repository == 'sipeed/sipeed_wiki'
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:

View File

@@ -11,6 +11,8 @@ on:
jobs:
# This workflow contains a single job called "build"
build:
# Only run job for specific repository
if: github.repository == 'sipeed/sipeed_wiki'
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:

View File

@@ -22,6 +22,8 @@ jobs:
# This workflow contains a single job called "build"
sync_gitee:
name: sync repo to gitee
# Only run job for specific repository
if: github.repository == 'sipeed/sipeed_wiki'
# The type of runner that the job will run on
runs-on: ubuntu-latest