Skip to content

Dummy Workflow on review #3205

Dummy Workflow on review

Dummy Workflow on review #3205

Workflow file for this run

# https://stackoverflow.com/questions/67247752/how-to-use-secret-in-pull-request-review-similar-to-pull-request-target
name: Dummy Workflow on review
on:
pull_request_review:
types: [submitted, edited]
permissions:
pull-requests: write
contents: write
issues: write
jobs:
dummy-workflow:
if: |
github.event.pull_request != '' &&
!contains(github.event.sender.login, 'coderabbitai[bot]')
runs-on: ubuntu-latest
steps:
- name: save the pr information
run: |
printf '{
"pr_num": "${{ github.event.pull_request.number || github.event.issue.number }}",
"event_action": "${{ github.event.action }}",
"review_state": "${{ github.event.review.state }}",
"event_name": "${{ github.event_name }}",
"comment_body": "${{ github.event.comment.body }}",
"review_comment_body": "${{ github.event.review.body }}",
"user_login": "${{ github.event.sender.login }}",
"action": "add-remove-labels"
}' >> context.json
- uses: actions/upload-artifact@v4
with:
name: context.json
path: ./