-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from DSACMS/add-auto-merge-into-dev-action
Add Workflow to Auto-Merge `main` into `dev`
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
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
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 |