Robert C. Martin, super well-known guru for software engineering and agile manifesto. #4
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: 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/checkout@v4.1.1 | |
- name: Post Discord | |
env: | |
DISCORD_WEBHOOK: $ {{ secrets.GDSC_CAU_DISCORD_ARTICLES }} | |
DISCORD_EMBEDS: '[{ "author": { "name": "${{ github.event.pull_request.user.login }}" }, "title": "${{ github.event.pull_request.title }}", "description": "${{ github.event.pull_request.body }}", "color": "${{ vars.DISCORD_EMBED_COLOR }}" }]' | |
uses: Ilshidur/action-discord@0.3.2 | |
with: | |
args: "New readings are updated!" |