mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-09 14:48:08 -05:00
.github/workflows: add irc commit notifications
This commit is contained in:
26
.github/workflows/irc-commit-message.yml
vendored
Normal file
26
.github/workflows/irc-commit-message.yml
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
send-message:
|
||||
runs-on: ubuntu-latest
|
||||
name: Send message via Matrix
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- run: |
|
||||
ALL_MSGS=""
|
||||
for i in ${{ join(github.event.commits.*.id, ' ') }}; do
|
||||
MSG=$(git --no-pager show -s --format='%h <b>%an</b>: %s' $i)
|
||||
ALL_MSGS="$ALL_MSGS$MSG<br>"
|
||||
done
|
||||
echo "::set-output name=COMMIT_MESSAGE::$ALL_MSGS"
|
||||
id: commit-message
|
||||
- uses: Gottox/irc-message-action@v2
|
||||
with:
|
||||
server: 'irc1.dark.fi'
|
||||
channel: '#dev'
|
||||
nickname: b1-66er
|
||||
message: '${{ steps.commit-message.outputs.COMMIT_MESSAGE }}'
|
||||
|
||||
Reference in New Issue
Block a user