Skip to content

Announce test

Announce test #7

Workflow file for this run

name: "Notify IRC on Push to Development"
on:
push:
branches:
- development
jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Create Commit List
id: commit_list
run: |

Check failure on line 14 in .github/workflows/notify-irc.yml

View workflow run for this annotation

GitHub Actions / Notify IRC on Push to Development

Invalid workflow file

The workflow is not valid. .github/workflows/notify-irc.yml (Line: 14, Col: 14): Unexpected symbol: '|'. Located at position 22 within expression: github.event.commits | length
commit_messages=""
commit_count=${{ github.event.commits | length }}
for commit in $(jq -r '.commits[].message' <<<"${{ toJson(github.event) }}"); do
commit_messages="$commit_messages\n$commit"
done
echo "commit_count=$commit_count" >> $GITHUB_ENV
echo "commit_messages=$commit_messages" >> $GITHUB_ENV
- name: Notify IRC
uses: rectalogic/notify-irc@v1
with:
channel: "#OpenZFS-Windows"
server: "irc.libera.chat"
nickname: zfs-consus
message: |
[openzfs] ${{ github.actor }} pushed ${{ env.commit_count }} commit{{ env.commit_count != 1 && 's' || '' }} to development
${{ github.event.compare }}
${{ env.commit_messages }}
tests:
needs: notify # This job will run only after the notify job completes
runs-on: ubuntu-latest
steps:
- name: Run Tests
run: echo "Running tests..."