Skip to content

Commit

Permalink
Create 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 23faa48 commit b13d85d
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/sync_with_terminal_wiki.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Sync with terminal-wiki

on:
schedule:
# This schedule runs the workflow every hour. Adjust as needed.
- cron: '0 * * * *'
workflow_dispatch:

jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout wiki repository
uses: actions/checkout@v2
with:
repository: charanravi-online/wiki
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

- name: Fetch changes from terminal-wiki
run: |
git remote add upstream https://github.com/charanravi-online/terminal-wiki.git
git fetch upstream
git merge upstream/main --no-edit
git push origin main

0 comments on commit b13d85d

Please sign in to comment.