only notify irc after successful build
This commit is contained in:
17
.github/workflows/notify-irc.yaml
vendored
17
.github/workflows/notify-irc.yaml
vendored
@@ -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
|
|
||||||
12
.github/workflows/release.yaml
vendored
12
.github/workflows/release.yaml
vendored
@@ -80,3 +80,15 @@ jobs:
|
|||||||
ghcr.io/${{ github.repository }}:latest
|
ghcr.io/${{ github.repository }}:latest
|
||||||
${{ github.repository }}:${{ needs.release-please.outputs.tag_name }}
|
${{ github.repository }}:${{ needs.release-please.outputs.tag_name }}
|
||||||
${{ github.repository }}:latest
|
${{ 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
|
||||||
|
|||||||
Reference in New Issue
Block a user