Skip to content

Create submodule-update.yml (#2524) #3

Create submodule-update.yml (#2524)

Create submodule-update.yml (#2524) #3

---
name: Submodule Updates
#############################
# Start the job on all push #
#############################
on:
push:
branches:
- master
###############
# Set the Job #
###############
jobs:
build:
name: Submodule update
runs-on: ubuntu-latest
env:
PARENT_REPOSITORY: 'snapshot-labs/snapshot'
CHECKOUT_BRANCH: 'master'
PR_AGAINST_BRANCH: 'master'
OWNER: 'snapshot-labs'
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.GITHUB_TOKEN }}
parent_repository: ${{ env.PARENT_REPOSITORY }}
checkout_branch: ${{ env.CHECKOUT_BRANCH}}
pr_against_branch: ${{ env.PR_AGAINST_BRANCH }}
owner: ${{ env.OWNER }}