From 50629c73c8c96d2c8997d7d1654c36184f432d19 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Wed, 6 Aug 2025 18:40:13 +0300 Subject: IRC workflow: use rectalogic/notify-irc Perhaps it will work with irc.libera.chat. --- .github/workflows/irc.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to '.github') diff --git a/.github/workflows/irc.yml b/.github/workflows/irc.yml index a44774c..63edd78 100644 --- a/.github/workflows/irc.yml +++ b/.github/workflows/irc.yml @@ -15,8 +15,6 @@ jobs: steps: - name: Git Clone uses: actions/checkout@v4.1.6 - - name: Install Build Dependencies - run: sudo apt-get install -y ncat - name: Get last successful commit uses: nrwl/last-successful-commit-action@v1 id: last_successful_commit @@ -24,10 +22,17 @@ jobs: branch: 'master' workflow_id: 'ci.yml' github_token: ${{ secrets.GITHUB_TOKEN }} - - name: IRC Connection + - name: Get log + id: get_log run: | - (echo "NICK git-bot" - echo "USER git-bot 8 * : git-bot" - echo "JOIN #sciteco" - git log --pretty="format:PRIVMSG #sciteco %h %s" --reverse ${{ steps.last_successful_commit.outputs.commit_hash }}..HEAD - echo "QUIT") | ncat --ssl irc.libera.chat 6697 + echo 'log<>$GITHUB_OUTPUT + git log --pretty="format:%h %s" --reverse \ + ${{ steps.last_successful_commit.outputs.commit_hash }}..HEAD`" >>$GITHUB_OUTPUT + echo 'EOF' >>$GITHUB_OUTPUT + - name: Post IRC message + uses: rectalogic/notify-irc@v1 + with: + channel: "#sciteco" + server: "irc.libera.chat" + nickname: git-bot + message: ${{ steps.get_log.outputs.log }} -- cgit v1.2.3