test: Notify Plex on PRs #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Notify Slack | |
on: | |
pull_request: | |
types: | |
- opened | |
- edited | |
- synchronize | |
jobs: | |
post-to-slack: | |
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 |