Benjamin-Philip commented on code in PR #128:
URL: https://github.com/apache/arrow-erlang/pull/128#discussion_r4789324562
##########
.github/workflows/docs.yml:
##########
@@ -95,6 +95,40 @@ jobs:
with:
artifact_name: docs-${{ github.sha }}
+ generate_preview_message:
+ name: Generate Preview Message on fork
Review Comment:
I understood the problem now. Unfortunately, I couldn't find a way to mark a
specific job or workflow as requiring manual approval to run, or forcing loads
from the base branch when using the `pull_request` trigger.
The workflow in the Erlang/OTP repo [I linked
to](https://github.com/erlang/otp/blob/4d7a816ca502de4f1e62b9e64ae87d8b514291e7/.github/workflows/pr-comment.yaml#L44-L65)
addresses this problem by accessing the PR number within `pr_comment.yml`
(which only loads from the base branch due to the `workflow_run` trigger), by
querying all open PRs with `gh api` and selecting the PR number with the same
HEAD SHA as the job.
I think the best course of action is to scrap the 2-step workflow, and to
try Erlang/OTP's approach.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]