ApprovalComment #2800
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') | |
permissions: write-all | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: ./.github/actions/maintainer-check | |
with: | |
username: ${{ github.event.review.user.login }} | |
- name: Save info about the review comment as an artifact for other workflows that run on workflow_run to download them | |
run: | | |
mkdir -p /tmp/artifacts | |
echo ${{ github.event.pull_request.number }} >> /tmp/artifacts/metadata.txt | |
echo ${{ github.event.review.commit_id }} >> /tmp/artifacts/metadata.txt | |
cat /tmp/artifacts/metadata.txt | |
- uses: ./.github/actions/upload-artifact |