Skip to content

Commit

Permalink
Merge pull request #64 from DSACMS/add-auto-merge-into-dev-action
Browse files Browse the repository at this point in the history
Add Workflow to Auto-Merge `main` into `dev`
  • Loading branch information
IsaacMilarky authored Feb 22, 2024
2 parents 2f5c3bd + 0d6f219 commit 016a0d6
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/autoMergeMainIntoDev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Merge main into dev

on:
push:
branches:
- main

jobs:
update-dev:
permissions: write-all
name: update-dev
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: |
git config user.name 'GitHub Actions'
git config user.email '[email protected]'
git checkout dev
git merge main
echo "Done with merge"
- name: Push to dev
uses: CasperWA/push-protected@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: dev

0 comments on commit 016a0d6

Please sign in to comment.