mirror of
https://github.com/peaceiris/actions-gh-pages.git
synced 2026-10-03 10:01:37 +00:00
ci: Exclude writing actions on forks (#562)
Co-authored-by: peaceiris <30958501+peaceiris@users.noreply.github.com>
This commit is contained in:
1 parent
87b7480404
commit
fcead0e030
2 files changed
+6
-6
No files matched your search
@@ -43,4 +43,4 @@ jobs:
|
|||||||
- run: make ci
|
- run: make ci
|
||||||
- run: make all
|
- run: make all
|
||||||
- run: docker-compose push
|
- run: docker-compose push
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main' && github.event.repository.fork == false
|
||||||
@@ -98,7 +98,7 @@ jobs:
|
|||||||
- name: Deploy
|
- name: Deploy
|
||||||
if: |
|
if: |
|
||||||
startsWith(matrix.os, 'ubuntu-18.04') &&
|
startsWith(matrix.os, 'ubuntu-18.04') &&
|
||||||
github.ref == 'refs/heads/main'
|
github.ref == 'refs/heads/main' && github.event.repository.fork == false
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
# deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
# deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
||||||
@@ -117,7 +117,7 @@ jobs:
|
|||||||
- name: Deploy
|
- name: Deploy
|
||||||
if: |
|
if: |
|
||||||
startsWith(matrix.os, 'ubuntu-16.04') &&
|
startsWith(matrix.os, 'ubuntu-16.04') &&
|
||||||
github.ref == 'refs/heads/main'
|
github.ref == 'refs/heads/main' && github.event.repository.fork == false
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
||||||
@@ -135,7 +135,7 @@ jobs:
|
|||||||
- name: Deploy
|
- name: Deploy
|
||||||
if: |
|
if: |
|
||||||
startsWith(matrix.os, 'macos') &&
|
startsWith(matrix.os, 'macos') &&
|
||||||
github.ref == 'refs/heads/main'
|
github.ref == 'refs/heads/main' && github.event.repository.fork == false
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
||||||
@@ -154,7 +154,7 @@ jobs:
|
|||||||
- name: Deploy
|
- name: Deploy
|
||||||
if: |
|
if: |
|
||||||
startsWith(matrix.os, 'windows') &&
|
startsWith(matrix.os, 'windows') &&
|
||||||
github.ref == 'refs/heads/main'
|
github.ref == 'refs/heads/main' && github.event.repository.fork == false
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
# deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
# deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
||||||
@@ -173,7 +173,7 @@ jobs:
|
|||||||
- name: Deploy
|
- name: Deploy
|
||||||
if: |
|
if: |
|
||||||
startsWith(matrix.os, 'ubuntu-20.04') &&
|
startsWith(matrix.os, 'ubuntu-20.04') &&
|
||||||
github.ref == 'refs/heads/main'
|
github.ref == 'refs/heads/main' && github.event.repository.fork == false
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
# deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
# deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
||||||
|
|||||||
Reference in new issue
Block a user