Skip to content

Commit

Permalink
split IRC notification between blead changes and non blead changes
Browse files Browse the repository at this point in the history
  • Loading branch information
atoomic committed Jul 31, 2020
1 parent f8d68e7 commit 6ef2b46
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/irc-notifications.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

- name: irc push
uses: rectalogic/notify-irc@v1
if: github.event_name == 'push'
if: github.event_name == 'push' && github.ref != 'refs/heads/blead'
with:
server: ${{ env.server }}
port: ${{ env.port }}
Expand All @@ -35,17 +35,16 @@ jobs:
${{ github.event.compare }}\n\
${{ join(github.event.commits.*.message) }}"

- name: irc push
- name: irc push to blead
uses: rectalogic/notify-irc@v1
# need extra logic to blead
if: github.event_name == 'push'
if: github.event_name == 'push' && github.ref == 'refs/heads/blead'
with:
server: ${{ env.server }}
port: ${{ env.port }}
channel: ${{ env.channel }}
nickname: inBlead
message:
"\x037${{ github.actor }}\x0F pushed \x033${{ github.event.ref }}\x0F\n\
"\x0313[blead]\x0F \x037${{ github.actor }}\x0F pushed to blead\n\
${{ github.event.compare }}\n\
${{ join(github.event.commits.*.message) }}"

Expand Down

0 comments on commit 6ef2b46

Please sign in to comment.