diff --git a/.gitea/workflows/compose-services-readme.yml b/.gitea/workflows/compose-services-readme.yml index 37bbe9e3..3238428c 100644 --- a/.gitea/workflows/compose-services-readme.yml +++ b/.gitea/workflows/compose-services-readme.yml @@ -19,28 +19,16 @@ jobs: uses: dcarbone/install-yq-action@4075b4dca348d74bd83f2bf82d30f25d7c54539b # v1.3.1 - name: Generate system info - id: sysinfo + id: gen-sysinfo uses: appleboy/ssh-action@v1.2.3 with: host: 192.168.1.254 username: charish port: 22 key: ${{ secrets.RUNNER_SSH_PRIVATE_KEY }} + capture_stdout: true script: neofetch - - name: Verifying SSH Output - run: | - echo "${{ steps.sysinfo.outputs.stdout }}" - cat "${{ steps.sysinfo.outputs.stdout }}" - - - name: Populating README with sysinfo. - run: | - echo "# System Info" > README.md - echo -e "\n\n" >> README.md - echo "```" >> README.md - echo "${{ steps.sysinfo.outputs.stdout }}" >> README.md - echo "```" >> README.md - echo -e "\n" >> README.md - name: Generate service list run: | @@ -52,8 +40,14 @@ jobs: with: file: ./services.yml - - name: Regenerate README table + - name: Regenerate README run: | + # Insert system info as a code block + echo '```' > README.md + echo "${{ steps.gen-sysinfo.outputs.stdout }}" >> README.md + echo '```' >> README.md + echo -e "\n\n" >> README.md + echo "# List of Services" >> README.md echo -e "\n\n" >> README.md echo "${{ steps.service-table.outputs.table }}" >> README.md