Skip to content

Martin Fowler, Super well-known guru for software architecture #3

Martin Fowler, Super well-known guru for software architecture

Martin Fowler, Super well-known guru for software architecture #3

name: Push To Discord Channel on Pull Request Closed
on:
pull_request_target:
types:
- closed
branches:
- main
jobs:
push-to-discord:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Post Discord
env:
EMBEDS: '{ "embeds": [{ "author": { "name": "${{ github.event.pull_request.user.name }}" }, "title": "${{ github.event.pull_request.title }}", "description": "${{ github.event.pull_request.body }}", "color": "${{ vars.DISCORD_EMBED_COLOR }}" }] }'
DISCORD_WEBHOOK: $ {{ secrets.GDSC_CAU_DISCORD_ARTICLES }}
DISCORD_EMBEDS: $ {{ toJson(env.EMBEDS) }}
uses: Ilshidur/[email protected]
with:
args: "New readings are updated!"