aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/update-submodule.yml
blob: 833c781d925edbaddac4f3cf44f1b2d0621381f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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