Add pull request to workflows

This commit is contained in:
JonnyWong16
2020-12-17 18:28:50 -08:00
parent a5834470ba
commit 3a9ca29e99
2 changed files with 8 additions and 6 deletions

View File

@@ -4,6 +4,7 @@ on:
push:
branches: [master, beta, nightly]
tags: [v*]
pull_request: ~
jobs:
build-installer:
@@ -93,7 +94,7 @@ jobs:
- name: Post Status to Discord
uses: sarisia/actions-status-discord@v1
if: always()
if: always() && github.event_name != 'pull_request'
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
status: ${{ job.status }}
@@ -103,7 +104,7 @@ jobs:
release:
name: Release Installers
needs: build-installer
if: startsWith(github.ref, 'refs/tags/') && always()
if: always() && startsWith(github.ref, 'refs/tags/') && github.event_name != 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Get Build Job Status