-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
23faa48
commit b13d85d
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
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
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 | ||