Skip to content

Commit

Permalink
cd(push-to-discord.yaml): update event trigger to pull_request_target…
Browse files Browse the repository at this point in the history
… when merged on main branch
  • Loading branch information
minusmo committed Mar 5, 2024
1 parent 8eaec0f commit ec5c5a6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/push-to-discord.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
name: Push To Discord Channel on Pull Request Closed

on:
workflow_dispatch:
pull_request:
types: [synchronize]
pull_request_target:
types:
- closed
branches:
- main

jobs:
push-to-discord:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest

steps:
Expand All @@ -19,6 +20,5 @@ jobs:
uses: fjogeleit/[email protected]
with:
url: $ {{ secrets.GDSC_CAU_DISCORD_ARTICLES }}
method: 'POST'
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" }] }'

0 comments on commit ec5c5a6

Please sign in to comment.