mirror of
https://gitea.redwind.top/Austin/subscription
synced 2024-11-16 08:52:20 +08:00
chore(actions): prevent run on fork
This commit is contained in:
parent
ef42474c53
commit
dc5abe7277
4
.github/workflows/release-please.yml
vendored
4
.github/workflows/release-please.yml
vendored
|
@ -13,6 +13,8 @@ jobs:
|
|||
release-please:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: google-github-actions/release-please-action@v3
|
||||
# prevent run on fork
|
||||
- if: github.repository == 'gkd-kit/subscription'
|
||||
uses: google-github-actions/release-please-action@v3
|
||||
with:
|
||||
release-type: node
|
||||
|
|
3
.github/workflows/release.yml
vendored
3
.github/workflows/release.yml
vendored
|
@ -7,7 +7,8 @@ on:
|
|||
|
||||
jobs:
|
||||
release:
|
||||
if: ${{ startsWith(github.event.head_commit.message, 'chore(main):') && contains(github.event.head_commit.message, 'release') }}
|
||||
# prevent run on fork
|
||||
if: ${{ github.repository == 'gkd-kit/subscription' && startsWith(github.event.head_commit.message, 'chore(main):') && contains(github.event.head_commit.message, 'release') }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
|
Loading…
Reference in New Issue
Block a user