diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2023-09-17 17:38:44 -0400 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2023-09-17 17:38:44 -0400 |
commit | 9e404835133cd1f4f3568778ae4b1704fe9d3e35 (patch) | |
tree | 71dd7d14156c67dc0352ce9c65f5b0947581d547 /.github | |
parent | 5f7a391fd1efff6fad4bc507acc38e82c90276b6 (diff) | |
download | lite-xl-colors-9e404835133cd1f4f3568778ae4b1704fe9d3e35.tar.gz lite-xl-colors-9e404835133cd1f4f3568778ae4b1704fe9d3e35.zip |
Updated with new lpm style table output.
Diffstat (limited to '.github')
-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 |