4040 id : setup-python
4141 uses : actions/setup-python@v5
4242 with :
43- python-version : ' 3.9 '
43+ python-version : " 3.11 "
4444
4545 - name : Install Poetry
4646 uses : snok/install-poetry@v1
7878 id : setup-python
7979 uses : actions/setup-python@v5
8080 with :
81- python-version : ' 3.9'
81+ python-version : " 3.9"
8282
8383 - name : Install Poetry
8484 uses : snok/install-poetry@v1
@@ -135,7 +135,7 @@ jobs:
135135 id : setup-python
136136 uses : actions/setup-python@v5
137137 with :
138- python-version : ' 3.9'
138+ python-version : " 3.9"
139139
140140 - name : Install Poetry
141141 uses : snok/install-poetry@v1
@@ -180,7 +180,7 @@ jobs:
180180 id : setup-python
181181 uses : actions/setup-python@v5
182182 with :
183- python-version : ' 3.9'
183+ python-version : " 3.9"
184184
185185 - name : Install Poetry
186186 uses : snok/install-poetry@v1
@@ -218,7 +218,7 @@ jobs:
218218 --base_path=tests/cicd/generate_docstring \
219219 --disable_telemetry
220220
221- - name : Generate Diagram
221+ - name : Generate Diagram
222222 run : |
223223 source .venv/bin/activate
224224 patchwork GenerateDiagram --log debug \
@@ -235,7 +235,7 @@ jobs:
235235 --github_api_key=${{ secrets.SCM_GITHUB_KEY }} \
236236 --folder_path=tests/cicd/generate_docstring \
237237 --disable_telemetry
238-
238+
239239 - name : Generate Code Usage Example
240240 run : |
241241 source .venv/bin/activate
@@ -251,15 +251,15 @@ jobs:
251251 # Specify the parent folder you want to check
252252 PARENT_FOLDER="./patchwork/steps"
253253 # Command to run if README.md is not found
254-
254+
255255 find "$PARENT_FOLDER" -mindepth 1 -maxdepth 1 -type d | grep -vE '/\.\.?/' | grep -vE '/__' | while read -r dir; do
256256 if [[ ! -f "$dir/README.md" ]]; then
257257 echo "No README.md in $dir"
258258 # Extract the last part of the path to use as a base for the branch name
259259 base_name=$(basename "$dir")
260260 # Convert to a Git-friendly branch name: replace spaces with underscores, remove slashes, etc.
261261 branch_name=$(echo "$base_name" | sed -e 's/[^a-zA-Z0-9]/_/g' -e 's/__*/_/g' -e 's/^_//g' -e 's/_$//g')
262-
262+
263263 patchwork GenerateREADME --log debug \
264264 --patched_api_key=${{ secrets.PATCHED_API_KEY }} \
265265 --github_api_key=${{ secrets.SCM_GITHUB_KEY }} \
0 commit comments