aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/update-submodule.yml
blob: 9ebe0e43bdc89cd414d1095d8c4a3c66ba91c083 (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-2025
          git fetch --prune origin
          git switch -d origin/main
          cd "$(git rev-parse --show-superproject-working-tree)"
          git add vhosts/t/albatross-swift-2025
          git config user.name nsfisis
          git config user.email nsfisis@gmail.com
          git commit -m "[automated] Update 'vhosts/t/albatross-swift-2025' (${GITHUB_SHA})"
          git push origin main