diff --git a/.github/workflows/notify-irc.yaml b/.github/workflows/notify-irc.yaml index 2ccf27be..8cf9082b 100644 --- a/.github/workflows/notify-irc.yaml +++ b/.github/workflows/notify-irc.yaml @@ -5,9 +5,13 @@ on: - master jobs: notify: - name: Send request + name: Checkout and notify runs-on: ubuntu-latest steps: - - run: | - curl "${{ secrets.IRC_NOTIFY_URL }}" -F target=#gonic -F 'message=push to master (@${{ github.event.head_commit.author.username }}) ${{ github.event.head_commit.message }}' >/dev/null 2>&1 + - name: Checkout repository + uses: actions/checkout@v3 + - name: Notify + run: | + set +x e + git log -1 --pretty="push to master (@%an) %B" | head -n 1 | curl "${{ secrets.IRC_NOTIFY_URL }}" -F target=#gonic -F message=@- >/dev/null 2>&1 exit 0