diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-01-17 23:55:58 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-01-18 00:12:10 +0900 |
| commit | d9a4755eda3d467b2592f73aae4e1a0c62317e71 (patch) | |
| tree | 59f6c8077a531bef961400392d6e0f98f682e260 | |
| parent | deacd0dfc195bca41af631114804d29937337cd8 (diff) | |
| download | phperkaigi-2024-albatross-d9a4755eda3d467b2592f73aae4e1a0c62317e71.tar.gz phperkaigi-2024-albatross-d9a4755eda3d467b2592f73aae4e1a0c62317e71.tar.zst phperkaigi-2024-albatross-d9a4755eda3d467b2592f73aae4e1a0c62317e71.zip | |
setup auto-deploy
| -rw-r--r-- | .github/workflows/update-submodule.yml | 26 |
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..913de26 --- /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 + git fetch --prune origin + git switch -d origin/main + cd "$(git rev-parse --show-superproject-working-tree)" + git add vhosts/t/albatross + git config user.name nsfisis + git config user.email nsfisis@gmail.com + git commit -m "[automated] Update 'vhosts/t/albatross' (${GITHUB_SHA})" + git push origin main |
