Skip to content

feat: 2024 Unwrapped #63

feat: 2024 Unwrapped

feat: 2024 Unwrapped #63

Workflow file for this run

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