Skip to content

Push To Discord Channel on Pull Request Closed #1

Push To Discord Channel on Pull Request Closed

Push To Discord Channel on Pull Request Closed #1

name: Push To Discord Channel on Pull Request Closed
on:
workflow_dispatch:
pull_request:
types: [synchronize]
branches:
- main
jobs:
push-to-discord:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Post Discord
uses: fjogeleit/[email protected]
with:
url: $ {{ secrets.GDSC_CAU_DISCORD_ARTICLES }}
method: 'POST'
data: '{ "embeds": [{ "author": { "name": "${{ github.event.pull_request.user.name }}" }, "title": "${{ github.event.pull_request.title }}", "description": "${{ github.event.pull_request.body }}", "color": "6393081" }] }'