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