Skip to content

Commit

Permalink
Merge pull request #52 from AllenInstitute/conochur-patch-1
Browse files Browse the repository at this point in the history
Create submodule-update.yml
  • Loading branch information
conochur authored Jul 24, 2024
2 parents e20be7b + 8fc5d82 commit 106800f
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/submodule-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Submodule Updates

#############################
# Start the job on all push #
#############################
on:
push:
branches-ignore: [master, main]
pull_request:
branches: [master, main]

###############
# Set the Job #
###############
jobs:
build:
name: Submodule update
runs-on: ubuntu-latest
env:
PARENT_REPOSITORY: 'AllenInstitute/ac_deploy'
CHECKOUT_BRANCH: 'develop'
PR_AGAINST_BRANCH: 'develop'
OWNER: 'AllenInstitute'

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 106800f

Please sign in to comment.