mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-09 06:38:12 -05:00
finishing github/irc-commit-message
This commit is contained in:
37
.github/workflows/irc-commit-message.yml
vendored
37
.github/workflows/irc-commit-message.yml
vendored
@@ -1,26 +1,23 @@
|
|||||||
on: [push]
|
name: "Push Notification IRC"
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
send-message:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Send message via IRC
|
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
- name: irc push
|
||||||
uses: actions/checkout@v2
|
uses: rectalogic/notify-irc@v1
|
||||||
|
if: github.event_name == 'push'
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
channel: "#dev"
|
||||||
- run: |
|
server: "irc1.dark.fi"
|
||||||
ALL_MSGS=""
|
nickname: github-notifier
|
||||||
for i in ${{ join(github.event.commits.*.id, ' ') }}; do
|
message: ${{ github.actor }} pushed ${{ join(github.event.commits.*.message) }} ${{ github.event.ref }}
|
||||||
MSG=$(git --no-pager show -s --format='%h <b>%an</b>: %s' $i)
|
- name: irc pull request
|
||||||
ALL_MSGS="$ALL_MSGS$MSG<br>"
|
uses: rectalogic/notify-irc@v1
|
||||||
done
|
if: github.event_name == 'pull_request'
|
||||||
echo "::set-output name=COMMIT_MESSAGE::$ALL_MSGS"
|
|
||||||
id: commit-message
|
|
||||||
- uses: Gottox/irc-message-action@v2
|
|
||||||
with:
|
with:
|
||||||
server: 'irc1.dark.fi'
|
channel: "#dev"
|
||||||
channel: '#dev'
|
server: "irc1.dark.fi"
|
||||||
nickname: b1-66er
|
nickname: github-notifier
|
||||||
message: '${{ steps.commit-message.outputs.COMMIT_MESSAGE }}'
|
message: ${{ github.actor }} opened PR ${{ github.event.pull_request.html_url }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user