diff --git a/.gitea/workflows/compose-services-readme.yml b/.gitea/workflows/compose-services-readme.yml index 7af06695..c0d6df92 100644 --- a/.gitea/workflows/compose-services-readme.yml +++ b/.gitea/workflows/compose-services-readme.yml @@ -30,7 +30,10 @@ jobs: - name: Verifying SSH ouput run: | - echo "${{ steps.gen-sysinfo.outputs.stdout }}" + echo "# System Info" > README.md + echo -e "\n\n" >> README.md + echo "${{ steps.gen-sysinfo.outputs.stdout }}" >> README.md + echo -e "\n" - name: Generate service list run: | @@ -42,24 +45,11 @@ jobs: with: file: ./services.yml - - name: Regenerate README + - name: Regenerate README table run: | - { - # Insert full system info as a code block, preserving formatting - echo "# System Info" - echo '```' - echo <<'EOF' - ${{ steps.gen-sysinfo.outputs.stdout }} - EOF - echo '```' - echo - echo - echo "# List of Services" - echo - echo - # Append the generated service table - printf "%s\n" "${{ steps.service-table.outputs.table }}" - } > README.md + echo "# List of Services" >> README.md + echo -e "\n\n" >> README.md + echo "${{ steps.service-table.outputs.table }}" >> README.md - name: Add/Commit README.md id: commit-readme