diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 57a0f49..0439920 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,6 +1,10 @@ version: 2 updates: - - package-ecosystem: "gitsubmodule" + - package-ecosystem: gitsubmodule directory: "/" schedule: - interval: "monthly" + interval: daily + - package-ecosystem: github-actions + directory: "/.github/workflows/" + schedule: + interval: daily diff --git a/.github/workflows/UpdateWikiSubmodule.yml b/.github/workflows/UpdateWikiSubmodule.yml new file mode 100644 index 0000000..c837b22 --- /dev/null +++ b/.github/workflows/UpdateWikiSubmodule.yml @@ -0,0 +1,41 @@ + +name: "Update Wiki Submodule" + +on: + push: + branches: [ master ] + pull_request: + types: [ opened, reopened ] + branches: [ master ] + schedule: + - cron: "0 18 * * *" # 日本時間で毎日午前三時に自動実行 + workflow_dispatch: + +jobs: + merge: + permissions: + contents: write + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - name: "Switch to Master Branch" + run: | + git fetch origin + git checkout master + - name: "Load Submodule" + run: git submodule update --init --recursive + - name: "Update Wiki Directory" + run: | + cd wiki + git fetch origin + git pull origin master + cd .. + - name: "Configure git user information." + run: | + git config --local user.email "noreply@localhost" + git config --local user.name "[BOT] Wiki Submodule Updater" + - name: "Commit & Push" + run: | + git add wiki + git commit -m "[BOT] Update Wiki Submodule to the Current Latest version" || exit $(($? - 1)) + git push diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d944721 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +_site/ +Gemfile.lock diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..b1abdf6 --- /dev/null +++ b/Gemfile @@ -0,0 +1 @@ +gem "github-pages", group: :jekyll_plugins diff --git a/README.md b/README.md index dcbbfac..3f2d6ae 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ +# osdev-jp +[![Update Wiki Submodule](https://github.com/osdev-jp/osdev-jp.github.io/actions/workflows/UpdateWikiSubmodule.yml/badge.svg)](https://github.com/osdev-jp/osdev-jp.github.io/actions/workflows/UpdateWikiSubmodule.yml) + ## 第46回自作OSもくもく会オンラインのご案内! OS自作をやっている人々で集まって,進捗を共有したり,みんなで黙々と作業する時間を取る会です! 7月27日(日)開催です! diff --git a/_config.yml b/_config.yml index f1dc22a..bd53095 100644 --- a/_config.yml +++ b/_config.yml @@ -2,4 +2,6 @@ theme: jekyll-theme-minimal title: osdev.jp description: osdev-jpでは、OS開発に有用な情報を収集し公開しています logo: logo.png +plugins: + - jekyll-sitemap markdown: GFM diff --git a/build.cmd b/build.cmd new file mode 100644 index 0000000..d5e7780 --- /dev/null +++ b/build.cmd @@ -0,0 +1,2 @@ +@echo off +wsl bundle exec jekyll b diff --git a/serve.cmd b/serve.cmd new file mode 100644 index 0000000..d326a8a --- /dev/null +++ b/serve.cmd @@ -0,0 +1,2 @@ +@echo off +wsl bundle exec jekyll s diff --git a/wiki b/wiki index 88049b7..1211724 160000 --- a/wiki +++ b/wiki @@ -1 +1 @@ -Subproject commit 88049b76659a2e6672232f58f21b1273ef61bc4e +Subproject commit 12117242394e39659638f6f5412f6ee27a577338