Add workflow to sync development branch with master
This commit is contained in:
1 parent
d2f235425f
commit
50110140c8
1 file changed
+31
@@ -0,0 +1,31 @@
|
|||||||
|
name: Sync development branch with master
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
sync:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repo
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Fast-forward development to master
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
git config user.name "github-actions[bot]"
|
||||||
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
|
|
||||||
|
git fetch origin master development
|
||||||
|
|
||||||
|
git checkout -B development origin/development || git checkout -b development
|
||||||
|
|
||||||
|
git merge --ff-only origin/master
|
||||||
|
|
||||||
|
git push origin development
|
||||||
Reference in new issue
Block a user