aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/irc.yml15
1 files changed, 10 insertions, 5 deletions
diff --git a/.github/workflows/irc.yml b/.github/workflows/irc.yml
index 63edd78..7aba3f8 100644
--- a/.github/workflows/irc.yml
+++ b/.github/workflows/irc.yml
@@ -25,14 +25,19 @@ jobs:
- name: Get log
id: get_log
run: |
- 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
+ {
+ echo 'LOG<<EOF'
+ git log --pretty="format:%h %s" --reverse \
+ ${{ steps.last_successful_commit.outputs.commit_hash }}..HEAD
+ 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 }}
+ # NOTE: There is also ${{ github.event.ref }} ${{ join(github.event.commits.*.message) }}
+ # but it probably doesn't give us the commits since the last succesful one, but simply everything
+ # belonging to the push.
+ message: ${{ steps.get_log.outputs.LOG }}