feat: clarity and ga #59
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
name: Sync Main to Data Branch | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write # Ensure the workflow has write access to contents | |
jobs: | |
sync-to-data-branch: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout main branch | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Configure Git | |
run: | | |
git config --global user.name 'devb' | |
git config --global user.email 'git@devb.io' | |
- name: Sync Main to Data Branch | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
# Create data branch if it doesn't exist | |
git checkout -B data origin/data 2>/dev/null || git checkout -b data | |
# Merge main into data branch | |
git merge main | |
# Push changes to data branch | |
git push origin data |