From d9cba5084ef1b3739de5b3eb889166ae6dfbcc14 Mon Sep 17 00:00:00 2001 From: sentriz Date: Wed, 25 Oct 2023 19:19:07 +0100 Subject: [PATCH] only notify irc after successful build --- .github/workflows/notify-irc.yaml | 17 ----------------- .github/workflows/release.yaml | 12 ++++++++++++ 2 files changed, 12 insertions(+), 17 deletions(-) delete mode 100644 .github/workflows/notify-irc.yaml diff --git a/.github/workflows/notify-irc.yaml b/.github/workflows/notify-irc.yaml deleted file mode 100644 index 44ccba7..0000000 --- a/.github/workflows/notify-irc.yaml +++ /dev/null @@ -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 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 290ad6b..fac60b5 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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