-
Notifications
You must be signed in to change notification settings - Fork 44
42 lines (38 loc) · 1.17 KB
/
submodule-update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
name: Submodule Updates
#############################
# Start the job on all push #
#############################
on:
push:
branches: [main]
###############
# Set the Job #
###############
jobs:
build:
name: Submodule update
runs-on: ubuntu-latest
env:
PARENT_REPOSITORY: "research-software-collaborations/research-software-collaborations.github.io"
CHECKOUT_BRANCH: "master"
PR_AGAINST_BRANCH: "master"
OWNER: "research-software-collaborations"
steps:
##########################
# Checkout the code base #
##########################
- name: Checkout Code
uses: actions/checkout@v3
####################################
# 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.DL_ACTION_RUNNER }}
parent_repository: ${{ env.PARENT_REPOSITORY }}
checkout_branch: ${{ env.CHECKOUT_BRANCH}}
pr_against_branch: ${{ env.PR_AGAINST_BRANCH }}
owner: ${{ env.OWNER }}