forked from openzfs/zfs
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Testing IRC annouce via github actions
Signed-off-by: Jorgen Lundman <[email protected]>
- Loading branch information
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
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: | | ||
commit_messages="" | ||
for commit in $(jq -r '.commits[].message' <<<"${{ toJson(github.event) }}"); do | ||
commit_messages="$commit_messages\n$commit" | ||
done | ||
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 ${{ github.event.commits | length }} commit{{ github.event.commits | length != 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..." | ||
|