ci: check updates of compose-spec and file PR
This commit is contained in:
parent
1407a77f07
commit
b8ea7a88bb
1 changed files with 16 additions and 11 deletions
27
.github/workflows/cron.yml
vendored
27
.github/workflows/cron.yml
vendored
|
@ -1,19 +1,24 @@
|
||||||
name: CRON
|
name: Submodule Updates
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 0 * * *'
|
- cron: '0 0 * * *'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update:
|
update_submodules:
|
||||||
|
name: Submodule update
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Checkout Code
|
||||||
- name: update compose-spec submodule
|
uses: actions/checkout@v3
|
||||||
run: |
|
|
||||||
git submodule update --init --recursive
|
- name: Update Submodules
|
||||||
git submodule update --remote --recursive
|
uses: releasehub-com/github-action-create-pr-parent-submodule@v1
|
||||||
- name: Commit changes
|
continue-on-error: true
|
||||||
run: |
|
with:
|
||||||
git commit -am "chore: update submodules" || echo "No changes to commit."
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
git push
|
parent_repository: ${{ github.repository_owner }}/compose-viz
|
||||||
|
checkout_branch: main
|
||||||
|
pr_against_branch: main
|
||||||
|
owner: ${{ github.repository_owner }}
|
||||||
|
label: "automerge"
|
||||||
|
|
Loading…
Reference in a new issue