-
-
Notifications
You must be signed in to change notification settings - Fork 218
47 lines (37 loc) · 1.06 KB
/
master.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: Sort sources hierarchical
on:
pull_request:
push:
branches:
- master
- main
- dev-autosort-lists
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout the repo
uses: actions/checkout@main
with:
ref: ${{ github.head_ref }}
- name: Setup Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install requirements
run: |
if [ -f requirements.txt ]; then python3.11 -m pip install --no-cache-dir -r requirements.txt; fi
- name: 'Sort the lists hierarchical'
run: |
sh "${{ github.workspace }}/tools/hierarchical_sort.sh"
- name: Git Status
run: git status
- name: Set commit tag
run: |
tag=$(date +'day: %j of year %Y %H:%M:%S')
- name: Commit all changed files back to the repository
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Hierarchical sorted the lists $tag"