diff --git a/.github/workflows/quick_change.yml b/.github/workflows/quick_change.yml new file mode 100644 index 0000000..10718dc --- /dev/null +++ b/.github/workflows/quick_change.yml @@ -0,0 +1,40 @@ +--- +name: Quick Change + +permissions: + id-token: write + contents: write + pull-requests: write + +on: + pull_request: + types: + - opened + - reopened + issue_comment: + types: [created, edited] + pull_request_review_comment: + types: [created, edited] + +jobs: + call-reusable-quick-change: + name: Run + if: | + github.event_name == 'pull_request' || + ( + ( + (github.event_name == 'issue_comment' && github.event.issue.pull_request) || + github.event_name == 'pull_request_review_comment' + ) && + contains(github.event.comment.body, '@ws-quick-change') && + ( + github.event.comment.author_association == 'OWNER' || + github.event.comment.author_association == 'MEMBER' || + github.event.comment.author_association == 'COLLABORATOR' || + github.event.comment.author_association == 'CONTRIBUTOR' + ) + ) + + uses: wealthsimple/quick-change/.github/workflows/quick_change.yml@main + + secrets: inherit