aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/irc.yml21
1 files changed, 13 insertions, 8 deletions
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<<EOF' >>$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 }}