Skip to content

Commit

Permalink
Update sync_with_terminal_wiki.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
charanravi-online authored Apr 26, 2024
1 parent 21cc5a8 commit 306c234
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/sync_with_terminal_wiki.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Sync with terminal-wiki
name: Sync specific folders from terminal-wiki

on:
schedule:
Expand All @@ -25,12 +25,13 @@ jobs:
git remote add upstream https://github.com/charanravi-online/terminal-wiki.git || true
git fetch upstream
- name: Merge changes allowing unrelated histories and excluding README and LICENSE
- name: Checkout specific folders
run: |
git merge upstream/main --allow-unrelated-histories --no-commit --no-ff
git checkout --ours README.md LICENSE # Keep local versions of these files
git commit -m "Merge changes from terminal-wiki, excluding README and LICENSE"
git checkout upstream/main -- src/ requirements.txt setup.py
# Use the above line to specify the paths of the folders you want to sync
- name: Push changes
- name: Commit changes
run: |
git add .
git commit -m "Sync specific folders from terminal-wiki"
git push origin main

0 comments on commit 306c234

Please sign in to comment.