Skip to content

Commit

Permalink
Adding submodule-update.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AIWintermuteAI authored Apr 2, 2024
1 parent 4350d14 commit 8fed208
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/submodule-update.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 8fed208

Please sign in to comment.