Compare commits

...

2 Commits

Author SHA1 Message Date
renovate-bot 86d1db7aaa 🔧 Renovate: Pin dependencies 2025-11-11 11:27:43 +00:00
Trez.One 692c8801db Customizing ansi-to-html action.
Renovate / renovate (push) Failing after 4m43s
2025-11-11 06:16:02 -05:00
+12 -8
View File
@@ -12,7 +12,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
with:
ref: main
@@ -29,7 +29,7 @@ jobs:
- name: Generate system info (ANSI preserved)
id: gen-sysinfo
uses: appleboy/ssh-action@v1.2.3
uses: appleboy/ssh-action@91f3272fc5907f4699dcf59761eb622a07342f5a # v1.2.3
with:
host: 192.168.1.254
username: charish
@@ -39,16 +39,20 @@ jobs:
script: neofetch
- name: Convert ANSI to HTML
run: |
echo "${{ steps.gen-sysinfo.outputs.stdout }}" > sysinfo.ansi
cat sysinfo.ansi | aha --black > sysinfo.html
id: ansi-to-html
uses: https://git.trez.wtf/Trez/actions-ansi-to-html@main
with:
input: ${{ steps.gen-sysinfo.outputs.stdout }}
# run: |
# echo "${{ steps.gen-sysinfo.outputs.stdout }}" > sysinfo.ansi
# cat sysinfo.ansi | aha --black > sysinfo.html
- name: Generate service list
run: |
yq 'explode(.) | .services | to_entries | map({"service": .key, "image": (.value.image | sub("@sha256:.*$"; "")), "description": (.value.labels."homepage.description" // "")})' docker-compose.yml > services.yml
- name: Generate Markdown Table
uses: gazab/create-markdown-table@v1.0.7
uses: gazab/create-markdown-table@6686233d7008e8d8b9d4bbdbfd1fb1ae510019f0 # v1.0.7
id: service-table
with:
file: ./services.yml
@@ -65,7 +69,7 @@ jobs:
echo '@media (prefers-color-scheme: dark) { #neofetch-output pre { background: #000; color: #fff; } }'
echo '@media (prefers-color-scheme: light) { #neofetch-output pre { background: #f8f8f8; color: #000; } }'
echo '</style>'
cat sysinfo.html
echo "${{ steps.ansi-to-html.outputs.contents }}"
echo '</div>'
echo '</details>'
echo ""
@@ -75,7 +79,7 @@ jobs:
} > README.md
- name: Add/Commit README.md
uses: EndBug/add-and-commit@v9
uses: EndBug/add-and-commit@a94899bca583c204427a224a7af87c02f9b325d5 # v9
with:
message: "chore: Update README"
add: "README.md"