ApprovalComment #1279
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ApprovalComment | |
on: | |
pull_request_review: | |
types: [submitted] | |
permissions: | |
contents: read | |
jobs: | |
approval-comment: | |
if: startsWith(github.event.review.body, '/test') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1 | |
with: | |
disable-telemetry: true | |
disable-sudo: true | |
egress-policy: block | |
allowed-endpoints: > | |
github.com:443 | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
with: | |
fetch-depth: 0 | |
- name: Save info about the review comment as an artifact for other workflows that run on workflow_run to download them | |
env: | |
REVIEW_BODY: ${{ github.event.review.body }} | |
run: | | |
mkdir -p /tmp/artifacts | |
{ echo ${{ github.event.pull_request.number }}; echo ${{ github.event.review.commit_id }}; } >> /tmp/artifacts/metadata.txt | |
cat /tmp/artifacts/metadata.txt | |
- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 | |
with: | |
name: artifacts | |
path: /tmp/artifacts |