mirror of
https://github.com/tcgdex/compiler.git
synced 2025-04-22 10:42:09 +00:00
Fix Github Action Errors (#6)
This commit is contained in:
parent
ad310dee62
commit
5e79ae6058
27
.github/workflows/node.js.yml
vendored
27
.github/workflows/node.js.yml
vendored
@ -5,7 +5,9 @@ name: Compile & Push
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master, Aviortheking-patch-1 ]
|
branches:
|
||||||
|
- master
|
||||||
|
pull_request:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
repository_dispatch:
|
repository_dispatch:
|
||||||
types:
|
types:
|
||||||
@ -18,7 +20,19 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: true
|
persist-credentials: false
|
||||||
|
|
||||||
|
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
repository: tcgdex/cards-database
|
||||||
|
path: ./db
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
repository: tcgdex/distribution
|
||||||
|
path: ./dist
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Setup NodeJS
|
- name: Setup NodeJS
|
||||||
@ -26,13 +40,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: '14.x'
|
node-version: '14.x'
|
||||||
|
|
||||||
- name: Pull Distribution
|
|
||||||
working-directory: ./dist
|
|
||||||
run: git pull --rebase
|
|
||||||
|
|
||||||
- name: Compile Database
|
- name: Compile Database
|
||||||
working-directory: ./db
|
working-directory: ./db
|
||||||
run: git pull --rebase && yarn && yarn compile
|
run: yarn && yarn compile
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: ./
|
working-directory: ./
|
||||||
@ -43,7 +53,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git config --local user.email "bot@tcgdex.net"
|
git config --local user.email "bot@tcgdex.net"
|
||||||
git config --local user.name "TCGdex [bot]"
|
git config --local user.name "TCGdex [bot]"
|
||||||
git commit -m "Updated Database" -a
|
git add .
|
||||||
|
git commit -m "Updated Database"
|
||||||
|
|
||||||
- name: Push changes
|
- name: Push changes
|
||||||
uses: ad-m/github-push-action@master
|
uses: ad-m/github-push-action@master
|
||||||
|
Loading…
x
Reference in New Issue
Block a user