Skip to content

Commit

Permalink
ci: check updates of compose-spec and file PR
Browse files Browse the repository at this point in the history
  • Loading branch information
wst24365888 committed Apr 27, 2024
1 parent 1407a77 commit b8ea7a8
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
name: CRON
name: Submodule Updates

on:
schedule:
- cron: '0 0 * * *'

jobs:
update:
update_submodules:
name: Submodule update
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: update compose-spec submodule
run: |
git submodule update --init --recursive
git submodule update --remote --recursive
- name: Commit changes
run: |
git commit -am "chore: update submodules" || echo "No changes to commit."
git push
- name: Checkout Code
uses: actions/checkout@v3

- name: Update Submodules
uses: releasehub-com/github-action-create-pr-parent-submodule@v1
continue-on-error: true
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
parent_repository: ${{ github.repository_owner }}/compose-viz
checkout_branch: main
pr_against_branch: main
owner: ${{ github.repository_owner }}
label: "automerge"

0 comments on commit b8ea7a8

Please sign in to comment.