Skip to content

feat: Migrate and Adapt KDM Bot Automation Scripts #3

feat: Migrate and Adapt KDM Bot Automation Scripts

feat: Migrate and Adapt KDM Bot Automation Scripts #3

Workflow file for this run

name: Bot - On PR Review

Check failure on line 1 in .github/workflows/on-pr-review.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/on-pr-review.yaml

Invalid workflow file

Unexpected tag '!github.event.pull_request.draft'
on:
pull_request_review:
types:
- submitted
permissions:
contents: read
jobs:
on-pr-review:
runs-on: ubuntu-latest
if: !github.event.pull_request.draft
concurrency:
group: pr-bot-${{ github.event.pull_request.number }}
cancel-in-progress: false
steps:
- name: Harden Runner
uses: step-security/harden-runner@9ca718d3bf646d6534007c269a635b3e54cadf99 # v2.19.2
with:
egress-policy: audit
- name: Save review event
env:
REVIEW_PAYLOAD: |
{
"pr_number": ${{ toJSON(github.event.pull_request.number) }},
"review_state": ${{ toJSON(github.event.review.state) }},
"draft": ${{ toJSON(github.event.pull_request.draft) }}
}
run: |
echo "$REVIEW_PAYLOAD" > review-event.cjson
- name: Upload review event
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: review-event-${{ github.run_id }}
path: review-event.cjson
retention-days: 1