Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added workflow for syncing branches #224

Merged
merged 7 commits into from
Apr 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/[email protected]
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: [email protected]
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/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.TOKEN_FOR_PR }}
FROM_BRANCH: "main"
TO_BRANCH: "develop"
PULL_REQUEST_TITLE: "sync: ${{ github.ref_name || github.ref }} -> main -> develop"
Loading