Nuclear War: Silo emits Pheromones #120
Workflow file for this run
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
name: 'New PR Notification' | |
on: | |
pull_request_target: | |
types: [opened, reopened, closed] | |
jobs: | |
notify: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Check for DISCORD_WEBHOOK" | |
id: secrets_set | |
env: | |
ENABLER_SECRET: ${{ secrets.DISCORD_WEBHOOK }} | |
run: | | |
unset SECRET_EXISTS | |
if [ -n "$ENABLER_SECRET" ]; then SECRET_EXISTS=true ; fi | |
echo "SECRETS_ENABLED=$SECRET_EXISTS" >> $GITHUB_OUTPUT | |
- name: Send Discord notification | |
uses: tgstation/discord-notify@v2 | |
if: > | |
steps.secrets_set.outputs.SECRETS_ENABLED && | |
github.event.pull_request.author_association != 'FIRST_TIMER' && | |
github.event.pull_request.author_association != 'FIRST_TIME_CONTRIBUTOR' | |
with: | |
webhook_url: ${{ secrets.DISCORD_WEBHOOK }} | |
include_image: true | |
avatar_url: https://raw.githubusercontent.com/tgstation/TerraGov-Marine-Corps/refs/heads/master/icons/tgmc_64.png | |
username: GitHub | |
title_url: "${{ github.event.pull_request.html_url }}" |