From 14de62ec052855f03f37fc06817f9270a19ee9d0 Mon Sep 17 00:00:00 2001 From: rebortg Date: Sat, 6 Feb 2021 18:27:49 +0100 Subject: Github: adjust githubactions for sagitta and equuleus --- .github/workflows/submodules.yml | 38 ++++++++++++++++++++++++++++++++++---- 1 file changed, 34 insertions(+), 4 deletions(-) (limited to '.github/workflows/submodules.yml') diff --git a/.github/workflows/submodules.yml b/.github/workflows/submodules.yml index ccbb64a6..82b8d4e4 100644 --- a/.github/workflows/submodules.yml +++ b/.github/workflows/submodules.yml @@ -5,12 +5,41 @@ on: # 06:00 UTC on Monday - cron: '0 6 * * 1' jobs: - updatVyOS-1x: + 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 + 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 @@ -23,10 +52,11 @@ jobs: uses: peter-evans/create-pull-request@v3 with: token: ${{secrets.GITHUB_TOKEN}} - commit-message: Update vyos-1x submodule + commit-message: "vyos-1x: update equuleus branch" committer: GitHub author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> - title: Update vyos-1x submodule + title: "vyos-1x: update equuleus branch" body: | Autoupdate vyos-1x submodule - branch: update-dependencies + branch: update-dependencies-equuleus + delete-branch: true -- cgit v1.2.3