kou commented on code in PR #128:
URL: https://github.com/apache/arrow-erlang/pull/128#discussion_r4749959526
##########
.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:
Could you do this on apache/arrow-erlang not fork? If a PR from a fork
generates a different PR number, the PR can add a comment to the different PR.
##########
.github/workflows/pr_comment.yml:
##########
@@ -18,37 +18,45 @@
name: PR comment
on: # zizmor: ignore[dangerous-triggers]
- pull_request_target:
+ workflow_run:
+ workflows: [Docs]
types:
- - opened
+ - completed
+ workflow_dispatch:
+ inputs:
+ run_id:
+ description: 'workflow run-id of the Docs workflow which generated the
message'
+ required: true
permissions:
- contents: read
+ actions: read
issues: write
pull-requests: write
jobs:
preview-url:
name: Preview URL
- if: github.event.pull_request.head.repo.full_name != 'apache/arrow-erlang'
Review Comment:
I think that we need `if: github.event.workflow_run.event == 'pull_request'`
or something. If we don't have it, I think that push on main will also run this
job.
##########
.github/workflows/docs.yml:
##########
@@ -95,6 +95,40 @@ jobs:
with:
artifact_name: docs-${{ github.sha }}
+ generate_preview_message:
+ name: Generate Preview Message on fork
+ if: github.event_name != 'push'
Review Comment:
Could you also avoid running this job by a PR from Dependabot? It creates a
branch in apache/arrow-erlang and open a PR from there.
--
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]