From d8c4d698c53d5d04f4d04790761ab0f1809eb69d Mon Sep 17 00:00:00 2001 From: Valentin Agachi Date: Wed, 24 Jan 2024 17:58:45 +0000 Subject: [PATCH] test: Notify Plex on PRs --- .github/workflows/plex.yaml | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/plex.yaml diff --git a/.github/workflows/plex.yaml b/.github/workflows/plex.yaml new file mode 100644 index 000000000..e07cdb295 --- /dev/null +++ b/.github/workflows/plex.yaml @@ -0,0 +1,38 @@ +name: Notify Plex + +on: + pull_request: + types: + - opened + - edited + - synchronize + +jobs: + notify-plex: + runs-on: ubuntu-latest + if: ${{ !contains(github.head_ref, 'renovate') }} + steps: + - uses: slackapi/slack-github-action@v1.24.0 + with: + payload: | + { + "text": "New Papr PR: ${{ github.event.pull_request.html_url }}", + "attachments": [ + { + "text": "", + "fallback": "Test Papr PR", + "callback_id": "trigger_workflow", + "actions": [ + { + "name": "papr_pr", + "text": "Test Papr PR", + "type": "button", + "value": "${{ github.event.pull_request.number }}" + } + ] + } + ] + } + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_PAPR_WEBHOOK_URL }} + SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK