Skip to content

Commit

Permalink
add workflow to merge main barnch with dev on daily basis
Browse files Browse the repository at this point in the history
  • Loading branch information
sreevalsanmr committed Nov 28, 2023
1 parent a27e855 commit f2b9a23
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/main_to_dev_merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Merge Main to Dev

on:
schedule:
- cron: '0 0 * * *' # Run daily at midnight UTC

jobs:
merge:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Merge Main to Dev
run: |
git checkout dev
git pull origin dev
git fetch origin main
git merge origin/main --no-edit
git push origin dev

0 comments on commit f2b9a23

Please sign in to comment.