diff options
Diffstat (limited to '.github/workflows/workflow.yml')
-rw-r--r-- | .github/workflows/workflow.yml | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 4117b73..b0fc92f 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -18,13 +18,9 @@ jobs: perl -pi -e 'exit(0) if $_ =~ m/^\-\-\-/' README.md echo "---" >> README.md echo -e "\n## Dark\n" >> README.md - echo "| Theme | Preview" >> README.md - echo "| :------------------------------------------------------------ | :----------------------------------------------------" >> README.md - ./lpm table manifest.json --type color --tag "dark" | tail -n +3 | perl -pe '($w) = $_ =~ m/`([^`]+)`/; $_ =~ s/$/ \!\[$w\_preview\](previews\/$w.svg)/ if $w' >> README.md + ./lpm list --repository . --type color --tag "dark" --table 'url,{string.format("![%s_preview](previews/%s.svg)", addon.id,addon.id)}' --type color --header Theme,Preview >> README.md echo -e "\n## Light\n" >> README.md - echo "| Theme | Preview" >> README.md - echo "| :------------------------------------------------------------ | :----------------------------------------------------" >> README.md - ./lpm table manifest.json --type color --tag "light" | tail -n +3 | perl -pe '($w) = $_ =~ m/`([^`]+)`/; $_ =~ s/$/ \!\[$w\_preview\](previews\/$w.svg)/ if $w' >> README.md + ./lpm list --repository . --type color --tag "light" --table 'url,{string.format("![%s_preview](previews/%s.svg)", addon.id,addon.id)}' --type color --header Theme,Preview >> README.md if ! git diff --exit-code -s README.md; then git config --global user.name "Github Actions" && git config --global user.email "<>" git add README.md previews |