-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (35 loc) · 1.06 KB
/
Copy pathreformat_with_totolo.yaml
File metadata and controls
44 lines (35 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
37
38
39
40
41
42
43
44
name: Reformat with Python 🐍 totolo 🤖
on:
pull_request:
branches:
- master
types:
- closed
jobs:
if_merged:
if: github.event.pull_request.merged == true
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 --reorder
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
commit-message: reformat with python-totolo
title: reformat with python-totolo
body: |
Reformat all /notes in the theming repository using the
python-totolo package like so:
python -m totolo.util.mergefiles ./notes --reorder
branch: totolo-reformat
delete-branch: true