aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-10 00:24:28 +0900
committernsfisis <nsfisis@gmail.com>2024-08-10 00:24:28 +0900
commitabb8c82ac0211089bddc6e9e00aabe3894d6c59c (patch)
treed28f61105bcc36fe71b0cd026e97c73dcbf5a5c1
parentb450648caa0d1bd5c91e67a33153bbacaf57f006 (diff)
downloadphperkaigi-2025-albatross-abb8c82ac0211089bddc6e9e00aabe3894d6c59c.tar.gz
phperkaigi-2025-albatross-abb8c82ac0211089bddc6e9e00aabe3894d6c59c.tar.zst
phperkaigi-2025-albatross-abb8c82ac0211089bddc6e9e00aabe3894d6c59c.zip
feat: add GitHub workflow to update submodule of `nsfisis/nil.ninja`
-rw-r--r--.github/workflows/update-submodule.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.github/workflows/update-submodule.yml b/.github/workflows/update-submodule.yml
new file mode 100644
index 0000000..ac6142d
--- /dev/null
+++ b/.github/workflows/update-submodule.yml
@@ -0,0 +1,26 @@
+name: Update submodule
+on:
+ push:
+ branches: [main]
+jobs:
+ update-submodule:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ repository: nsfisis/nil.ninja
+ submodules: true
+ token: ${{ secrets.GH_PAT }}
+ path: nil.ninja
+
+ - run: |
+ cd nil.ninja
+ cd vhosts/t/albatross-swift
+ git fetch --prune origin
+ git switch -d origin/main
+ cd "$(git rev-parse --show-superproject-working-tree)"
+ git add vhosts/t/albatross-swift
+ git config user.name nsfisis
+ git config user.email nsfisis@gmail.com
+ git commit -m "[automated] Update 'vhosts/t/albatross-swift' (${GITHUB_SHA})"
+ git push origin main