Skip to content

Sync Codetree Subtree #136

Sync Codetree Subtree

Sync Codetree Subtree #136

Workflow file for this run

name: Sync Codetree Subtree
on:
schedule:
- cron: '0 16 * * *'
workflow_dispatch:
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout algorithm repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set Git config
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Add codetree remote
run: |
git remote add codetree https://github.com/ghi512/Codetree.git
git fetch codetree
- name: Pull codetree subtree
run: |
git subtree pull --prefix=codetree codetree main -m "chore(subtree): sync codetree"
- name: Push updated subtree
run: |
git push origin main