diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-03-01 06:51:39 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-03-01 06:54:46 +0300 |
commit | a072c08365b1759d63edf74b9c97b618c383ee48 (patch) | |
tree | 1d2c2677046f9cfaaa3c2ef586cb220a6c23972c /.github/workflows/ci.yml | |
parent | 5d5a2044460723abd752c0898b1da474eb21bd61 (diff) | |
download | sciteco-a072c08365b1759d63edf74b9c97b618c383ee48.tar.gz |
CI: fixed posting of latest commits into the IRC channel
* This will post on __every__ push.
In the future, we might want to post only after successful CI and consequently
since the last commit, that had a successful CI run.
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r-- | .github/workflows/ci.yml | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 29cbb70..4db29d2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,6 +3,23 @@ name: Continuous Integration on: [push, pull_request] jobs: + # Only for posting into the IRC channel. + # FIXME: Perhaps we should do this only after all of CI is successful and + # include all commits since the last successful CI run? + irc: + runs-on: ubuntu-latest + steps: + - name: Git Clone + uses: actions/checkout@v4.1.6 + - name: Post into IRC channel + if: ${{ github.event_name == 'push' }} + run: | + (echo "NICK git-bot" + echo "USER git-bot 8 * : git-bot" + echo "JOIN #sciteco" + git log --pretty="format:PRIVMSG #sciteco %h %s" --reverse ${{ github.event.before }}..${{ github.event.after }} + echo "QUIT") | ncat --ssl irc.libera.chat 6697 + ubuntu: strategy: matrix: @@ -53,16 +70,6 @@ jobs: - name: Build Source Tarball run: make dist - # Once all tests are successful, post into the IRC channel. - - name: Post into IRC channel - if: ${{ github.event_type == 'push' && matrix.os == 'ubuntu-22.04' }} - run: | - (echo "NICK git-bot" - echo "USER git-bot 8 * : git-bot" - echo "JOIN #sciteco" - git log --pretty="format:PRIVMSG #sciteco %h %s" --reverse ${{ github.event.before }}..${{ github.event.after }} - echo "QUIT") | ncat --ssl irc.libera.chat 6697 - macos: runs-on: macos-latest |