cr-comment.yml 624 B

123456789101112131415161718
  1. name: Add continuous release label
  2. on:
  3. issue_comment:
  4. types: [created]
  5. permissions:
  6. pull-requests: write
  7. jobs:
  8. label:
  9. if: ${{ github.event.issue.pull_request && (github.event.comment.user.id == github.event.issue.user.id || github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'COLLABORATOR') && startsWith(github.event.comment.body, '/publish') }}
  10. runs-on: ubuntu-latest
  11. steps:
  12. - run: gh issue edit ${{ github.event.issue.number }} --add-label cr-tracked --repo ${{ github.repository }}
  13. env:
  14. GITHUB_TOKEN: ${{ secrets.CR_PAT }}