From a5f69efacb9cbcf36546b5c5aad5832393bd7c7e Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 17 Aug 2025 17:33:54 +0900 Subject: feat(ci): re-enable GitHub Actions --- .github/workflows/update-submodule.yml | 26 +++++++++++++++++++++++++ .github/workflows/update-submodule.yml.disabled | 26 ------------------------- 2 files changed, 26 insertions(+), 26 deletions(-) create mode 100644 .github/workflows/update-submodule.yml delete mode 100644 .github/workflows/update-submodule.yml.disabled (limited to '.github/workflows') diff --git a/.github/workflows/update-submodule.yml b/.github/workflows/update-submodule.yml new file mode 100644 index 0000000..cd13bd3 --- /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-php-2025 + git fetch --prune origin + git switch -d origin/main + cd "$(git rev-parse --show-superproject-working-tree)" + git add vhosts/t/albatross-php-2025 + git config user.name nsfisis + git config user.email nsfisis@gmail.com + git commit -m "[automated] Update 'vhosts/t/albatross-php-2025' (${GITHUB_SHA})" + git push origin main diff --git a/.github/workflows/update-submodule.yml.disabled b/.github/workflows/update-submodule.yml.disabled deleted file mode 100644 index cd13bd3..0000000 --- a/.github/workflows/update-submodule.yml.disabled +++ /dev/null @@ -1,26 +0,0 @@ -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-php-2025 - git fetch --prune origin - git switch -d origin/main - cd "$(git rev-parse --show-superproject-working-tree)" - git add vhosts/t/albatross-php-2025 - git config user.name nsfisis - git config user.email nsfisis@gmail.com - git commit -m "[automated] Update 'vhosts/t/albatross-php-2025' (${GITHUB_SHA})" - git push origin main -- cgit v1.2.3-70-g09d2