pr-reviews.yml 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. # Copyright Broadcom, Inc. All Rights Reserved.
  2. # SPDX-License-Identifier: APACHE-2.0
  3. # NOTE: This workflow is maintained in the https://github.com/bitnami/support repository
  4. name: '[Support] PR review comment card movements'
  5. on:
  6. pull_request_review_comment:
  7. types:
  8. - created
  9. pull_request_review:
  10. types:
  11. - submitted
  12. - dismissed
  13. permissions: {}
  14. # Avoid concurrency over the same issue
  15. concurrency:
  16. group: card-movement-${{ github.event.pull_request.number }}
  17. jobs:
  18. just-notice:
  19. # This is a dummy workflow that triggers a workflow_run
  20. runs-on: ubuntu-latest
  21. if: ${{ github.repository_owner == 'bitnami' }}
  22. steps:
  23. - run: |
  24. echo "::notice:: Comment on PR #${{ github.event.pull_request.number }}"
  25. jq -n --arg issue '${{ github.event.pull_request.number }}' --arg state '${{ github.event.review != null && github.event.review.state || '' }}' '{"issue": {"number": $issue }, "review": { "state": $state }}' > pull_request_info.json
  26. - name: Upload the PR info
  27. uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
  28. with:
  29. name: pull_request_info.json
  30. path: ./pull_request_info.json