Skip to content

Commit 59e6fac

Browse files
committed
Add Discord notification to WebClient builds
1 parent 066a21a commit 59e6fac

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/publish-ffxivvenues-web-client.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ on:
2828
required: true
2929
docker_access_token:
3030
required: true
31+
discord_builds_webhook:
32+
required: true
3133

3234
jobs:
3335
publish_for_platforms:
@@ -75,4 +77,20 @@ jobs:
7577
run: |
7678
docker buildx imagetools create -t ${{ secrets.DOCKER_USERNAME }}/ffxivvenues.web:${{ inputs.tag }} \
7779
${{ secrets.DOCKER_USERNAME }}/ffxivvenues.web:${{ inputs.tag }}-amd64 \
78-
${{ secrets.DOCKER_USERNAME }}/ffxivvenues.web:${{ inputs.tag }}-arm64
80+
${{ secrets.DOCKER_USERNAME }}/ffxivvenues.web:${{ inputs.tag }}-arm64
81+
82+
notify_discord:
83+
name: Notify Discord webhook
84+
runs-on: ubuntu-latest
85+
needs: publish_multiplatform_manifest
86+
steps:
87+
88+
- name: Notify Discord webhook
89+
uses: tsickert/discord-webhook@v7.0.0
90+
with:
91+
webhook-url: ${{ secrets.DISCORD_BUILDS_WEBHOOK }}
92+
embed-author-name: "${{ github.workflow }}"
93+
embed-title: "${{ github.event.head_commit.message }}"
94+
embed-url: "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
95+
embed-description: "${{ github.event }} by ${{ github.actor }}"
96+
embed-color: ${{ job.status == 'success' && '3066993' || '15158332' }}

0 commit comments

Comments
 (0)