[smuxi: 32/37] GitHub-CI/notify-irc: truncate commit message
- From: Mirco M. M. Bauer <mmmbauer src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [smuxi: 32/37] GitHub-CI/notify-irc: truncate commit message
- Date: Sun, 3 Jan 2021 16:05:25 +0000 (UTC)
commit e73fcb228b7e066a5b3d22bb934cd34c2264497d
Author: Mirco Bauer <meebey meebey net>
Date: Sun Jan 3 14:50:36 2021 +0800
GitHub-CI/notify-irc: truncate commit message
Good commit messages are usually long with an explanation why the change was
made. To not spam the IRC channel with all the details, only send the first line
instead.
Unfortunately, GitHub Actions doesn't [functions][] to transform variables. Thus
we use a [forked version][] of the Action that does this transformation inside
the Python implementation for us.
[functions]:
https://docs.github.com/en/free-pro-team@latest/actions/reference/context-and-expression-syntax-for-github-actions#functions
[forked version]: https://github.com/vmiklos/notify-irc
.github/workflows/notify-irc.yml | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/.github/workflows/notify-irc.yml b/.github/workflows/notify-irc.yml
index 89eb2685..6c6fe4e4 100644
--- a/.github/workflows/notify-irc.yml
+++ b/.github/workflows/notify-irc.yml
@@ -9,15 +9,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: irc push
- uses: rectalogic/notify-irc@v1
+ uses: vmiklos/notify-irc@a52a197c9507ad7a81c1a9295c9ed24786e396b3
if: github.event_name == 'push'
with:
channel: "#smuxi-devel"
notice: true
nickname: github-ci
message: |
- ${{ github.actor }} pushed ${{ github.event.ref }} ${{ github.event.compare }}
- ${{ join(github.event.commits.*.message) }}
+ ${{ toJson(github.event) }}
- name: irc pull request
uses: rectalogic/notify-irc@v1
if: github.event_name == 'pull_request'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]