mirror of
https://github.com/tcgdex/compiler.git
synced 2025-04-22 10:42:09 +00:00
Made github actions not run everything on pulls
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
parent
81f765f2a9
commit
db86629f03
6
.github/workflows/node.js.yml
vendored
6
.github/workflows/node.js.yml
vendored
@ -5,10 +5,7 @@ name: Compile & Push
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
repository_dispatch:
|
||||
types:
|
||||
- webhook
|
||||
@ -50,6 +47,7 @@ jobs:
|
||||
|
||||
- name: Commit Changes
|
||||
working-directory: ./dist
|
||||
if: ${{ (github.event_name == 'push' && github.ref == 'refs/head/master') || github.event_name == 'repository_dispatch' }}
|
||||
run: |
|
||||
git config --local user.email "bot@tcgdex.net"
|
||||
git config --local user.name "TCGdex [bot]"
|
||||
@ -58,6 +56,7 @@ jobs:
|
||||
|
||||
- name: Push changes
|
||||
uses: ad-m/github-push-action@master
|
||||
if: ${{ (github.event_name == 'push' && github.ref == 'refs/head/master') || github.event_name == 'repository_dispatch' }}
|
||||
with:
|
||||
github_token: ${{ secrets.PUSH_TOKEN }}
|
||||
directory: ./dist
|
||||
@ -65,6 +64,7 @@ jobs:
|
||||
|
||||
- name: Upload
|
||||
run: yarn upload
|
||||
if: ${{ (github.event_name == 'push' && github.ref == 'refs/head/master') || github.event_name == 'repository_dispatch' }}
|
||||
env:
|
||||
UPLOAD_REMOTE: ${{ secrets.UPLOAD_REMOTE }}
|
||||
UPLOAD_DIST: ${{ secrets.UPLOAD_DIST }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user