diff options
author | rebortg <github@ghlr.de> | 2020-12-10 08:44:34 +0100 |
---|---|---|
committer | rebortg <github@ghlr.de> | 2020-12-10 08:44:34 +0100 |
commit | 72701bf825e17eae2938b880a230afb9f09e8b3e (patch) | |
tree | 164d2eac116628853a121c51e01efb992ee5cf7c /.github | |
parent | b71a670b91f3ff1273239b0a69b8511754d0e4e0 (diff) | |
download | vyos-documentation-72701bf825e17eae2938b880a230afb9f09e8b3e.tar.gz vyos-documentation-72701bf825e17eae2938b880a230afb9f09e8b3e.zip |
create gihub action for scheduled submodule update
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/submodules.yml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/submodules.yml b/.github/workflows/submodules.yml new file mode 100644 index 00000000..0e501bdd --- /dev/null +++ b/.github/workflows/submodules.yml @@ -0,0 +1,32 @@ +name: Update submodule vyos-1x +on: + workflow_dispatch: + schedule: + # 06:00 UTC on Monday + - cron: '0 6 * * 1' +jobs: + updatVyOS-1x: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + repository: rebortg/vyos-documentation + - 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: Update vyos-1x submodule + committer: GitHub <noreply@github.com> + author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> + title: Update vyos-1x submodule + body: | + Autoupdate vyos-1x submodule + branch: update-dependencies |