-
Notifications
You must be signed in to change notification settings - Fork 5
41 lines (32 loc) · 1.2 KB
/
merge_proposed_with_totolo.yaml
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
name: Merge Proposed Themes with Python 🐍 totolo 🤖
on:
push:
branches: [ dev-themes ]
jobs:
merge-proposed-into-primary:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install totolo
- name: Reformat "notes" in repository checkout
run: |
python -m totolo.util.mergefiles ./notes/themes/proposed.th.txt ./notes/themes/primary.th.txt --reorder
: > ./notes/themes/proposed.th.txt
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
commit-message: merge proposed themes, with python-totolo
title: merge proposed themes => primary themes
body: |
Merge proposed themes => primary themes, with python-totolo command:
python -m totolo.util.mergefiles ./notes/themes/proposed.th.txt ./notes/themes/primary.th.txt --reorder
: > ./notes/themes/proposed.th.txt
branch: totolo-merge-proposed
delete-branch: true