Dozer Pulls #2956
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: Dozer Pulls | |
on: | |
pull_request_target: | |
branches: [main, pull-yaml-dev] | |
types: [opened] | |
pull_request_review: | |
types: [submitted] | |
pull_request_review_comment: | |
types: [created, deleted] | |
concurrency: | |
group: pull | |
jobs: | |
notify: | |
name: Discord Pull | |
runs-on: ubuntu-latest | |
steps: | |
- name: Pull Request | |
if: ${{ github.event_name == 'pull_request_target' || github.event_name == 'pull_request' }} | |
env: | |
DISCORD_WEBHOOK: ${{ secrets.DISCORD_GITHUB_WEBOOK }} | |
DISCORD_EMBEDS: '[ { | |
"title": " Pull request #${{ github.event.pull_request.number }} opened by ${{ github.actor }}", | |
"author": { "icon_url": "https://avatars.githubusercontent.com/${{ github.actor }}", "name": "${{ github.actor }}", "url": "https://github.com/${{ github.actor }}" }, | |
"fields": [ | |
{ "name": "Pull Request", "value": "[${{ github.event.pull_request.title }}](${{ github.event.pull_request.html_url }})" }, | |
{ "name": "Repository", "value": "[getdozer/dozer](https://github.com/getdozer/dozer)" }, | |
{ "name": "Message", "value": ${{ toJSON(github.event.pull_request.body || github.event.pull_request.title) }}} | |
], | |
"color": 990099 | |
}]' | |
uses: Ilshidur/action-discord@master |