mirror of
https://github.com/vyos/vyos-documentation.git
synced 2025-10-26 08:41:46 +01:00
Github: adjust githubactions for sagitta and equuleus
This commit is contained in:
parent
8839d72d17
commit
14de62ec05
38
.github/workflows/submodules.yml
vendored
38
.github/workflows/submodules.yml
vendored
@ -5,12 +5,41 @@ on:
|
|||||||
# 06:00 UTC on Monday
|
# 06:00 UTC on Monday
|
||||||
- cron: '0 6 * * 1'
|
- cron: '0 6 * * 1'
|
||||||
jobs:
|
jobs:
|
||||||
updatVyOS-1x:
|
updateVyOS-1x_master:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
repository: ${{ github.repository }}
|
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
|
- name: update submodule
|
||||||
run: |
|
run: |
|
||||||
git submodule status
|
git submodule status
|
||||||
@ -23,10 +52,11 @@ jobs:
|
|||||||
uses: peter-evans/create-pull-request@v3
|
uses: peter-evans/create-pull-request@v3
|
||||||
with:
|
with:
|
||||||
token: ${{secrets.GITHUB_TOKEN}}
|
token: ${{secrets.GITHUB_TOKEN}}
|
||||||
commit-message: Update vyos-1x submodule
|
commit-message: "vyos-1x: update equuleus branch"
|
||||||
committer: GitHub <noreply@github.com>
|
committer: GitHub <noreply@github.com>
|
||||||
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
|
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
|
||||||
title: Update vyos-1x submodule
|
title: "vyos-1x: update equuleus branch"
|
||||||
body: |
|
body: |
|
||||||
Autoupdate vyos-1x submodule
|
Autoupdate vyos-1x submodule
|
||||||
branch: update-dependencies
|
branch: update-dependencies-equuleus
|
||||||
|
delete-branch: true
|
||||||
|
|||||||
2
.gitmodules
vendored
2
.gitmodules
vendored
@ -1,4 +1,4 @@
|
|||||||
[submodule "docs/_include/vyos-1x"]
|
[submodule "docs/_include/vyos-1x"]
|
||||||
path = docs/_include/vyos-1x
|
path = docs/_include/vyos-1x
|
||||||
url = https://github.com/vyos/vyos-1x
|
url = https://github.com/vyos/vyos-1x
|
||||||
branch = equuleus
|
branch = current
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user