summaryrefslogtreecommitdiff
path: root/.github/workflows/submodules.yml
blob: 82b8d4e4e876fa03c90161b3c2770479803665f2 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Update submodule vyos-1x
on:
  workflow_dispatch:
  schedule:
  # 06:00 UTC on Monday
    - cron:  '0 6 * * 1'
jobs:
  updateVyOS-1x_master:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        with:
          repository: ${{ github.repository }}
      - name: update submodule
        run: |
          git submodule status
          git submodule update --init --force
          cd docs/_include/vyos-1x
          git checkout current
          git pull
          git submodule status
      - name: Create Pull Request
        uses: peter-evans/create-pull-request@v3
        with:
          token: ${{secrets.GITHUB_TOKEN}}
          commit-message: "vyos-1x: update current branch"
          committer: GitHub <noreply@github.com>
          author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
          title: "vyos-1x: update current branch"
          body: |
            Autoupdate vyos-1x submodule
          branch: update-dependencies-master
          delete-branch: true


  updateVyOS-1x_equuleus:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        with:
          repository: ${{ github.repository }}
          ref: equuleus
      - name: update submodule
        run: |
          git submodule status
          git submodule update --init --force
          cd docs/_include/vyos-1x
          git checkout equuleus
          git pull
          git submodule status
      - name: Create Pull Request
        uses: peter-evans/create-pull-request@v3
        with:
          token: ${{secrets.GITHUB_TOKEN}}
          commit-message: "vyos-1x: update equuleus branch"
          committer: GitHub <noreply@github.com>
          author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
          title: "vyos-1x: update equuleus branch"
          body: |
            Autoupdate vyos-1x submodule
          branch: update-dependencies-equuleus
          delete-branch: true