mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 21:09:11 +00:00
* refactor: move database, navigator scripts to state package * feat: add Schema config for dwn * test: add unit tests for InitializeDatabase * feat: use templated index.html for the DWN frontend * feat: introduce templ generation for templ * chore(deps): update devbox.json to use latest packages * chore: update devbox to use bun * feat: introduce dwn config generation * feat: add motr.mjs for vault management * refactor: move front end from to (alert) * feat: implement devbox integration and devbox-based process management * feat: embed motr.mjs script for offline demo * refactor: embed motr.mjs data in embed.go * chore: update workflows to use actions/checkout@v4 * refactor: move process-compose.yaml to deploy directory * refactor: remove unnecessary JSON conversion
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
name: Sync Branches
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "*"
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
sync-branches:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Check if tag is on develop or master
|
|
id: check-branch
|
|
run: |
|
|
if git branch -r --contains ${{ github.ref }} | grep -q 'origin/develop\|origin/master'; then
|
|
echo "SYNC_NEEDED=true" >> $GITHUB_OUTPUT
|
|
else
|
|
echo "SYNC_NEEDED=false" >> $GITHUB_OUTPUT
|
|
fi
|
|
|
|
- name: Sync develop to master
|
|
if: steps.check-branch.outputs.SYNC_NEEDED == 'true'
|
|
uses: devmasx/merge-branch@master
|
|
with:
|
|
type: now
|
|
from_branch: develop
|
|
target_branch: master
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Sync master back to develop
|
|
if: steps.check-branch.outputs.SYNC_NEEDED == 'true'
|
|
uses: devmasx/merge-branch@master
|
|
with:
|
|
type: now
|
|
from_branch: master
|
|
target_branch: develop
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|