Skip to content

Commit 9829e77

Browse files
authored
ci: Added git auto commit to workflow (#27)
1 parent 628b943 commit 9829e77

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This workflow will install Python dependencies, executes generate_style_list script and update docs during workkflow
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: Update docs
5+
6+
on:
7+
workflow_dispatch:
8+
push:
9+
branches:
10+
- main
11+
12+
jobs:
13+
docs:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
python-version: [3.8]
18+
steps:
19+
- uses: actions/checkout@v2
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v2
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install --upgrade --upgrade-strategy eager --no-cache-dir .[docs]
28+
- name: execute script
29+
run: |
30+
python ./docs/source/generate_style_list.py
31+
- uses: EndBug/add-and-commit@v8
32+
with:
33+
default_author: github_actions
34+
message: 'docs: update style list'

docs/source/generate_style_list.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import os
2+
__import__("sys").path.append(os.path.join(os.path.dirname(__file__), "..", ".."))
23
from table2ascii import PresetStyle, table2ascii
34

45

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy