Skip to content

Commit dfa5304

Browse files
authored
fix(GHA): Avoid some actions in forks (#12354)
1 parent 5fcc9e4 commit dfa5304

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.github/workflows/gh-pages.yml

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ jobs:
5252

5353
- name: Deploy
5454
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
55+
if: github.repository == 'DefectDojo/django-DefectDojo' # Deploy docs only in core repo, not in forks - it would just fail in fork
5556
with: # publishes to the `gh-pages` branch by default
5657
github_token: ${{ secrets.GITHUB_TOKEN }}
5758
publish_dir: ./docs/public

.github/workflows/slack-pr-reminder.yml

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
jobs:
99
notify-reviewers:
1010
runs-on: ubuntu-latest
11+
if: github.repository == 'DefectDojo/django-DefectDojo' # Notify only in core repo, not in forks - it would just fail in fork
1112

1213
steps:
1314
- name: Checkout repository

0 commit comments

Comments
 (0)