Skip to content

Commit

Permalink
feat: added workflow for syncing branches (#219)
Browse files Browse the repository at this point in the history
* feat: added workflow for syncing branches

* test: added temporary trigger

* Revert "test: added temporary trigger"

This reverts commit 80f996f.

* fix: title name template

* fix: title name template

* revert: text trigger
  • Loading branch information
kyY00n authored Apr 25, 2024
1 parent 8b171f3 commit 59a08fb
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Build
on: pull_request
jobs:
build:
Expand All @@ -11,4 +11,4 @@ jobs:
cmd: install # will run `yarn install` command
- uses: borales/actions-yarn@v3.0.0
with:
cmd: build # will run `yarn build` command
cmd: build # will run `yarn build` command
29 changes: 20 additions & 9 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: build and push code
name: CI
on:
push:
branches:
- main
jobs:
git-push:
name: build and push
name: Build and push
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -24,10 +24,21 @@ jobs:
destination-repository-name: 'express-build'
user-email: dev.kayoung@gmail.com
target-branch: main
# deploy:
# name: deploy pm2
# needs: git-push
# runs-on: [self-hosted, production]
# steps:
# - name: run shell script
# run: /home/ubuntu/deploy-piickle-server.sh
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: ${{ github.head_ref || github.ref_name }} -> main -> develop"

0 comments on commit 59a08fb

Please sign in to comment.