OnPRStateChangedPriv.yml 1002 B

123456789101112131415161718192021222324252627
  1. #
  2. # Workflows triggered by PRs submitted from forked repositories
  3. # (all of ours) are severly limited in what they can do.
  4. # For instance, they can't add or remove labels or comments even
  5. # on the PR that triggered them. Since we need to both of those,
  6. # GitHub recommends creating a separate workflow (this one) that
  7. # does those tasks that's triggered when the PR submit workflow
  8. # starts or finishes. Since this workflow isn't being run in the
  9. # context of a forked repo, it has all the privileges needed to
  10. # add and remove labels and comments. Hence the "Priv" at the end
  11. # of this workflow name.
  12. #
  13. name: PRChangedPriv
  14. run-name: "PRChangedPriv ${{ github.event.workflow.name }} ${{ github.event.action }}"
  15. on:
  16. workflow_run:
  17. workflows: [PRChanged]
  18. types:
  19. - requested
  20. - completed
  21. jobs:
  22. PRChangedPriv:
  23. name: PRChangedPriv
  24. uses: asterisk/asterisk-ci-actions/.github/workflows/AsteriskPRStateChangedPriv.yml@main
  25. secrets:
  26. TOKEN: ${{ secrets.GITHUB_TOKEN }}