-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 1.06 KB
/
submodule_update.yml
File metadata and controls
36 lines (31 loc) · 1.06 KB
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
name: Update engine submodule
on:
repository_dispatch:
types: [engine-updated]
workflow_dispatch:
jobs:
update-submodule:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
token: ${{ secrets.GITHUB_TOKEN }}
- name: Configure git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Update engine to latest main
run: |
git submodule update --remote engine
cd engine && git checkout main && git pull && cd ..
- name: Open PR if submodule changed
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GH_PAT }}
commit-message: "update engine submodule to latest main"
title: "update engine submodule"
body: |
Automated update of the `engine` submodule to the latest commit on `cdisc-rules-engine/main`.
branch: auto/update-engine-submodule
base: main