ApprovalComment #4801
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] | |
jobs: | |
approval-comment: | |
if: startsWith(github.event.review.body, '/karpenter snapshot') || startsWith(github.event.review.body, '/karpenter scale') || startsWith(github.event.review.body, '/karpenter versionCompatibility') | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
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 }} | |
PULL_REQUEST_NUMBER: ${{ github.event.pull_request.number }} | |
COMMIT_ID: ${{ github.event.review.commit_id }} | |
run: | | |
mkdir -p /tmp/artifacts | |
{ echo "$REVIEW_BODY"; echo "$PULL_REQUEST_NUMBER"; echo "$COMMIT_ID"; } >> /tmp/artifacts/metadata.txt | |
cat /tmp/artifacts/metadata.txt | |
- uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 | |
with: | |
name: artifacts | |
path: /tmp/artifacts |