Skip notification job if not set up

This commit is contained in:
Gunter Labes 2023-08-23 14:22:49 +02:00 committed by GitHub
parent a6883aabe0
commit 4774505c8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,11 +5,12 @@ on:
types: [ opened, closed, reopened ]
issues:
types: [ opened, closed, reopened ]
create:
# create: # creation also gets mentioned when pushing
delete:
jobs:
notify:
if: vars.IRC_CHANNEL != '' # skip if not set up (like in a fork for example)
runs-on: ubuntu-latest
steps:
- name: Prepare message