diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 734498c..ccdfd8c 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -1,8 +1,30 @@ name: "Pull Request" -on: pull_request +on: [ workflow_dispatch, pull_request ] + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +permissions: + contents: read + pull-requests: read + checks: write + id-token: write + jobs: pr-check: name: "Pull Request Check" uses: mParticle/mparticle-workflows/.github/workflows/android-kit-pull-request.yml@main with: - branch_name: ${{ github.head_ref }} \ No newline at end of file + branch_name: ${{ github.head_ref }} + + pr-notify: + if: > + github.event_name == 'pull_request' && + github.event.pull_request.draft == false + needs: + - pr-check + name: Notify GChat + uses: ROKT/rokt-workflows/.github/workflows/oss_pr_opened_notification.yml@main + secrets: + gchat_webhook: ${{ secrets.GCHAT_PRS_WEBHOOK }}