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