Skip to content

Commit

Permalink
[discord-notify] fixed json typo + removed unsupported hyperlink
Browse files Browse the repository at this point in the history
  • Loading branch information
hugsy committed Jun 24, 2021
1 parent 4661f81 commit a6d2baf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/discord-notify.yml
Expand Up @@ -12,23 +12,23 @@ jobs:
if: github.event_name == 'push' && github.repository_owner == 'hugsy'
with:
args: |
[${{ github.actor }}](${{ github.actor.url }}) pushed to `${{ github.event.ref }}`: ${{ github.event.compare }}
${{ github.actor }} github.actor.url pushed to `${{ github.event.ref }}`: ${{ github.event.compare }}
- name: GEF PR Notification
uses: Ilshidur/action-discord@0.3.2
if: github.event_name == 'pull_request' && github.event.action == 'opened' && github.repository_owner == 'hugsy'
with:
args: |
[${{ github.actor }}](${{ github.actor.url }}) created a new Pull Request (`#${{ github.event.pull_request.number }}`)
${{ github.actor }} github.actor.url created a new Pull Request (`#${{ github.event.pull_request.number }}`)
env:
DISCORD_EMBEDS: '{"embeds": [{"author": { "name": ${{ github.actor }}, "url": "{{ EVENT_PAYLOAD.pull_request.html_url }}", "icon_url": "${{ github.actor.avatar_url }}" } , "title": "PR `ID=#${{ github.event.pull_request.number }}`", "description": ":grinning:"}]}'
DISCORD_EMBEDS: '{"embeds": [{"author": { "name": "${{ github.actor }}", "url": "{{ EVENT_PAYLOAD.pull_request.html_url }}", "icon_url": "${{ github.actor.avatar_url }}" } , "title": "PR `ID=#${{ github.event.pull_request.number }}`", "description": ":grinning:"}]}'

- name: GEF Issue Notification
uses: Ilshidur/action-discord@0.3.2
if: github.event_name == 'issues' && github.event.action == 'opened' && github.repository_owner == 'hugsy'
with:
args: |
[${{ github.actor }}](${{ github.actor.url }}) created a new Issue (`#${{ github.event.issue.number }}`)
${{ github.actor }} github.actor.url created a new Issue (`#${{ github.event.issue.number }}`)
env:
DISCORD_EMBEDS: '{"embeds": [{"author": { "name": ${{ github.actor }}, "url": "{{ EVENT_PAYLOAD.issue.html_url }}", "icon_url": "${{ github.actor.avatar_url }}" , "title": "Issue `ID=#${{ github.event.issue.number }}`", "description": ":grinning:"}]}'
DISCORD_EMBEDS: '{"embeds": [{"author": { "name": "${{ github.actor }}", "url": "{{ EVENT_PAYLOAD.issue.html_url }}", "icon_url": "${{ github.actor.avatar_url }}" , "title": "Issue `ID=#${{ github.event.issue.number }}`", "description": ":grinning:"}]}'

0 comments on commit a6d2baf

Please sign in to comment.