Converting service list to MD table.
This commit is contained in:
@@ -132,22 +132,22 @@ jobs:
|
|||||||
- name: Install yq
|
- name: Install yq
|
||||||
uses: dcarbone/install-yq-action@v1
|
uses: dcarbone/install-yq-action@v1
|
||||||
|
|
||||||
- name: Generate README list
|
- name: Generate service list
|
||||||
id: readme-list
|
|
||||||
run: |
|
run: |
|
||||||
services_list=$(yq '.services | to_entries | map({"service": .key, "image": .value.image})' docker-compose.yml)
|
yq '.services | to_entries | map({"service": .key, "image": .value.image})' docker-compose.yml > services.yml
|
||||||
echo "SERVICES_LIST<<EOF" >> $GITHUB_ENV
|
|
||||||
echo "${services_list}" >> $GITHUB_ENV
|
- name: Generate Markdown Table
|
||||||
echo "EOF" >> $GITHUB_ENV
|
uses: gazab/create-markdown-table@v1
|
||||||
|
id: service_table
|
||||||
|
with:
|
||||||
|
file: ./services.yml
|
||||||
|
|
||||||
- name: Regenerate README
|
- name: Regenerate README
|
||||||
uses: gnpaone/dynamic-update-readme@v1.0.2
|
uses: gnpaone/dynamic-update-readme@v1.0.2
|
||||||
with:
|
with:
|
||||||
marker_text: "SERVICES_LIST"
|
marker_text: "SERVICES_LIST"
|
||||||
markdown_text: |
|
markdown_text: |
|
||||||
```yaml
|
${{ steps.service_table.outputs.table }}
|
||||||
${{ env.SERVICES_LIST }}
|
|
||||||
````
|
|
||||||
commit_email: noreply@trez.wtf
|
commit_email: noreply@trez.wtf
|
||||||
commit_username: gitea-sonarqube-bot
|
commit_username: gitea-sonarqube-bot
|
||||||
commit_message: "docs: regenerate README"
|
commit_message: "docs: regenerate README"
|
||||||
|
|||||||
Reference in New Issue
Block a user