only notify irc after successful build

This commit is contained in:
sentriz
2023-10-25 19:19:07 +01:00
parent d8f3d2af40
commit d9cba5084e
2 changed files with 12 additions and 17 deletions

View File

@@ -1,17 +0,0 @@
name: Notify IRC
on:
push:
branches:
- master
jobs:
notify:
name: Checkout and notify
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Notify
run: |
set +x e
git log -1 --pretty="push to master (@%an) %s" | curl "${{ secrets.IRC_NOTIFY_URL }}" -F target=#gonic -F message=@- >/dev/null 2>&1
exit 0

View File

@@ -80,3 +80,15 @@ jobs:
ghcr.io/${{ github.repository }}:latest
${{ github.repository }}:${{ needs.release-please.outputs.tag_name }}
${{ github.repository }}:latest
notify-irc:
needs: [release-please]
name: Notify IRC
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Notify
run: |
set +x e
git log -1 --pretty="push to master (@%an) %s" | curl "${{ secrets.IRC_NOTIFY_URL }}" -F target=#gonic -F message=@- >/dev/null 2>&1
exit 0