Update quic_repo_frontend_build_deploy.yml #76
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: Quick Discord Notification | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
issues: | |
types: [opened, edited, milestoned] | |
jobs: | |
send_noti: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Extract branch name | |
run: echo "BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_ENV | |
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' }} | |
- name: Send status to Discord | |
uses: sarisia/[email protected] | |
if: always() | |
with: | |
webhook: ${{ secrets.DISCORD_WEBHOOK }} | |
title: ${{ github.event_name }} -- ${{ env.BRANCH_NAME }} | |
color: 0xff3366 | |