Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: publish preview url only for the base repo prs (#313)
# What ❔ Publish preview url only for the base repo PRs. ## Why ❔ Even though `pull-requests: write` permissions are specified for the `Build and Test App` GitHub workflow, forked PRs are executed under `pull-requests: read` permissions. This causes the `Publish preview URL` action to fail, as it attempts to add a comment to the PR. Using the `pull_request_target` event instead of `pull_request` is not an option, as the workflow builds and runs code from the pull request context. To resolve this, the `Publish preview URL` action was modified to run only for base repository PRs. This should not be a problem for the forked PRs, as the URL is still output to the GitHub Action logs. ## Checklist <!-- Check your PR fulfills the following items. --> <!-- For draft PRs check the boxes as you complete them. --> - [X] PR title corresponds to the body of PR (we generate changelog entries from PRs).
- Loading branch information