-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
2c0b480
commit 60eab7e
Showing
1 changed file
with
24 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,24 @@ | ||
name: Sync Wiki | ||
|
||
on: | ||
schedule: | ||
- cron: '0 * * * *' # Execute every hour | ||
workflow_dispatch: # Execute manually | ||
|
||
jobs: | ||
sync-wiki: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Sync Wiki from mutable.ai | ||
run: | | ||
git clone https://github.com/yihong1120/Construction-Hazard-Detection.wiki.git | ||
cd Construction-Hazard-Detection.wiki | ||
curl -L https://wiki.mutable.ai/yihong1120/Construction-Hazard-Detection -o mutable_wiki.zip | ||
unzip -o mutable_wiki.zip -d . | ||
git add . | ||
git commit -m "Update Wiki from mutable.ai" | ||
git push |