From 8fed2084b590a10c705745474db373702849af64 Mon Sep 17 00:00:00 2001 From: AIWintermuteAI <32562299+AIWintermuteAI@users.noreply.github.com> Date: Tue, 2 Apr 2024 11:45:22 +0200 Subject: [PATCH] Adding submodule-update.yml --- .github/workflows/submodule-update.yml | 46 ++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/submodule-update.yml diff --git a/.github/workflows/submodule-update.yml b/.github/workflows/submodule-update.yml new file mode 100644 index 0000000..3b8b2ce --- /dev/null +++ b/.github/workflows/submodule-update.yml @@ -0,0 +1,46 @@ +--- +name: Submodule Updates + +############################# +# Start the job on all push # +############################# +on: + push: + branches-ignore: [develop, main] + pull_request: + branches: [develop, main] + schedule: + - cron: '00 12 * * 1' # Monday 12 PM UTC + +############### +# Set the Job # +############### +jobs: + build: + name: Submodule update + runs-on: ubuntu-latest + env: + PARENT_REPOSITORY: 'AIWintermuteAI/whispercpp' + CHECKOUT_BRANCH: 'develop' + PR_AGAINST_BRANCH: 'develop' + OWNER: 'AIWintermuteAI' + + steps: + ########################## + # Checkout the code base # + ########################## + - name: Checkout Code + uses: actions/checkout@v2 + + #################################### + # Run the action against code base # + #################################### + - name: run action + id: run_action + uses: releasehub-com/github-action-create-pr-parent-submodule@v1 + with: + github_token: ${{ secrets.RELEASE_HUB_SECRET }} + parent_repository: ${{ env.PARENT_REPOSITORY }} + checkout_branch: ${{ env.CHECKOUT_BRANCH}} + pr_against_branch: ${{ env.PR_AGAINST_BRANCH }} + owner: ${{ env.OWNER }}