Skip to content

Commit

Permalink
test: Notify Plex on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
avaly committed Jan 25, 2024
1 parent d1e1366 commit d8c4d69
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/plex.yaml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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

0 comments on commit d8c4d69

Please sign in to comment.