Benjamin-Philip commented on code in PR #128:
URL: https://github.com/apache/arrow-erlang/pull/128#discussion_r4788938688


##########
.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 see what you mean. We can move `generate_preview_message` to its own 
workflow, with only `pull_request` as a trigger, and then update `pr_comment`'s 
triggering workflow. This would prevent pushes to main running this jobs.



-- 
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]

Reply via email to