mirror of
https://github.com/sipeed/sipeed_wiki.git
synced 2026-09-11 00:22:49 -05:00
Make GitHub Actions can only run in the original repository.
This commit is contained in:
2
.github/workflows/publish.yml
vendored
2
.github/workflows/publish.yml
vendored
@@ -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:
|
||||
|
||||
2
.github/workflows/publish_upload_all.yml
vendored
2
.github/workflows/publish_upload_all.yml
vendored
@@ -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:
|
||||
|
||||
2
.github/workflows/sync_gitee.yml
vendored
2
.github/workflows/sync_gitee.yml
vendored
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user