File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -23,15 +23,16 @@ jobs:
23
23
- name : Set options
24
24
id : set-options
25
25
run : |
26
- # Deploy only if the PR was opened on the same repository
27
- if [[ "${{ github.repository }}" == "${{ github.event.pull_request.head.repo.full_name }}" ]]; then
28
- DEPLOY="true"
29
- else
30
- DEPLOY="false"
31
- fi
26
+ # By default always deploy
27
+ DEPLOY="true"
32
28
# Create previews only for pull requests
33
29
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
34
30
PREVIEW="previews/PR${PRNUM}"
31
+ # For pull requests, actually deploy only if the PR was opened on the same
32
+ # repository.
33
+ if [[ "${{ github.repository }}" != "${{ github.event.pull_request.head.repo.full_name }}" ]]; then
34
+ DEPLOY="false"
35
+ fi
35
36
else
36
37
PREVIEW=""
37
38
fi
43
44
PRNUM : ${{ github.event.number }}
44
45
45
46
deploy :
46
- name : " Deploy"
47
+ name : " Build and Deploy"
47
48
needs : options
48
49
runs-on : ubuntu-latest
49
50
permissions : write-all
You can’t perform that action at this time.
0 commit comments