feat: include detailed error (#229) #19
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: CI | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
git-push: | |
name: Build and push | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: borales/actions-yarn@v3.0.0 | |
with: | |
cmd: install # will run `yarn install` command | |
- uses: borales/actions-yarn@v3.0.0 | |
with: | |
cmd: build # will run `yarn build` command | |
- uses: cpina/github-action-push-to-another-repository@main | |
env: | |
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} | |
with: | |
source-directory: dist/ | |
destination-github-username: 'TeamPiickle' | |
destination-repository-name: 'express-build' | |
user-email: dev.kayoung@gmail.com | |
target-branch: main | |
sync-branches: | |
name: Sync main -> develop | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 12 | |
- name: Opening pull request | |
id: pull | |
uses: tretuna/sync-branches@1.4.0 | |
with: | |
GITHUB_TOKEN: ${{ secrets.TOKEN_FOR_PR }} | |
FROM_BRANCH: "main" | |
TO_BRANCH: "develop" | |
PULL_REQUEST_TITLE: "sync: main -> develop" |