aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/update-submodule.yml
blob: cd13bd3af0dd220e6eb72643add3d153c9eac6c2 (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-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