Skip to content

Commit 34c223c

Browse files
committed
chore(OVH): fix incorrect event name
1 parent 1f0badd commit 34c223c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ jobs:
1414
uses: ./.github/workflows/ovh.yaml
1515
with:
1616
environment_name: ${{ github.event_name == 'push' && 'production' || format('pull/{0}', github.event.pull_request.number) }}
17-
url: ${{ github.event_name == 'pull_request' && format('https://{0}/pr/{1}', vars.PREVIEW_WEBSITE, github.event.pull_request.number) || format('https://{0}', vars.MAIN_WEBSITE) }}
18-
target: ${{ github.event_name == 'pull_request' && format('pulls/pr/{0}', github.event.pull_request.number) || 'www' }}
17+
url: ${{ github.event_name == 'pull_request_target' && format('https://{0}/pr/{1}', vars.PREVIEW_WEBSITE, github.event.pull_request.number) || format('https://{0}', vars.MAIN_WEBSITE) }}
18+
target: ${{ github.event_name == 'pull_request_target' && format('pulls/pr/{0}', github.event.pull_request.number) || 'www' }}
1919
action: deploy
2020
secrets: inherit
2121

2222
cleanup:
2323
if: |
24-
github.event_name == 'pull_request' && (github.event.action == 'closed' || contains(github.event.pull_request.labels.*.name, 'stale'))
24+
github.event_name == 'pull_request_target' && (github.event.action == 'closed' || contains(github.event.pull_request.labels.*.name, 'stale'))
2525
uses: ./.github/workflows/ovh.yaml
2626
with:
2727
environment_name: ${{ format('pull/{0}', github.event.pull_request.number) }}

0 commit comments

Comments
 (0)