Move webhook env vars, drop unnecessary secrets

This commit is contained in:
GriffinR 2021-03-07 22:40:09 -05:00
parent fd42e02af4
commit ba1e006a64
1 changed files with 4 additions and 6 deletions

View File

@ -5,11 +5,6 @@ on:
branches: [ master ]
pull_request:
env:
CALCROM_DISCORD_WEBHOOK_USERNAME: ${{ secrets.CALCROM_DISCORD_WEBHOOK_USERNAME }}
CALCROM_DISCORD_WEBHOOK_AVATAR_URL: ${{ secrets.CALCROM_DISCORD_WEBHOOK_AVATAR_URL }}
CALCROM_DISCORD_WEBHOOK_URL: ${{ secrets.CALCROM_DISCORD_WEBHOOK_URL }}
jobs:
build:
runs-on: ubuntu-18.04
@ -37,6 +32,9 @@ jobs:
run: make -j${nproc} modern
- name: Webhook
shell: bash
if: ${{ github.event_name == 'push' }}
env:
CALCROM_DISCORD_WEBHOOK_USERNAME: OK
CALCROM_DISCORD_WEBHOOK_AVATAR_URL: https://i.imgur.com/38BQHdd.png
CALCROM_DISCORD_WEBHOOK_URL: ${{ secrets.CALCROM_DISCORD_WEBHOOK_URL }}
run: sh .github/calcrom/webhook.sh pokeemerald