-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (41 loc) · 1.23 KB
/
update_website.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
43
44
45
46
47
name: update website
on:
push:
branches:
- 'main'
schedule:
- cron: '5 8 * * 0' # Evry Sunday 8.05
workflow_dispatch:
jobs:
update_submodule:
runs-on: ubuntu-22.04
steps:
- name: checkout repository
uses: actions/checkout@v3
- name: update submodule
run: |
git submodule update --init --recursive
git submodule update --remote rohd
- name: update src content
run: tool/gh_actions/update_directory.sh
- name: create pull request
uses: peter-evans/create-pull-request@v5
with:
title: "Update submodule content"
branch: create-pull-request/patch_submodule_content
base: deploy-website
commit-message: "Update submodule content"
delete-branch: false
update_content:
runs-on: ubuntu-22.04
steps:
- name: checkout repository
uses: actions/checkout@v3
# Merge whatever is on main into deploy-website to keep it sync'd
- name: Merge main
uses: devmasx/[email protected]
with:
type: now
from_branch: main
target_branch: deploy-website
github_token: ${{ secrets.GITHUB_TOKEN }}