Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/preview-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
(
github.event_name == 'workflow_dispatch' ||
github.event_name == 'push' ||
(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'trigger: preview'))
(github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'trigger: preview'))
)
runs-on: ubuntu-latest
outputs:
Expand Down Expand Up @@ -122,7 +122,7 @@ jobs:
triggering_pr: prNumber.toString(),
preview_url: '${{ needs.preview.outputs.preview-url }}',
package_name: '${{ needs.preview.outputs.package-name }}',
triggering_sha: context.eventName === 'pull_request' ? context.payload.pull_request.head.sha : context.sha
triggering_sha: context.eventName === 'pull_request_target' ? context.payload.pull_request.head.sha : context.sha
}
});

Expand All @@ -134,7 +134,7 @@ jobs:
}

- name: Find existing preview comment
if: github.event_name == 'pull_request'
if: github.event_name == 'pull_request_target'
uses: peter-evans/find-comment@v3
id: find-comment
with:
Expand All @@ -144,7 +144,7 @@ jobs:
body-includes: '<!-- functions-js-preview-status -->'

- name: Create or update preview comment
if: github.event_name == 'pull_request'
if: github.event_name == 'pull_request_target'
uses: peter-evans/create-or-update-comment@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down