aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorAdam <adamdharrison@gmail.com>2023-10-10 14:48:42 -0400
committerGitHub <noreply@github.com>2023-10-10 20:48:42 +0200
commitadd3c17e4cf0580b5c02caa90a4fe983b5fabe08 (patch)
treecf48544eb5c375ff0c8684f48bb40405bdade6ca /.github
parente7f7c231c95343549c72aa8e24cded69f6556a84 (diff)
downloadlite-xl-plugins-add3c17e4cf0580b5c02caa90a4fe983b5fabe08.tar.gz
lite-xl-plugins-add3c17e4cf0580b5c02caa90a4fe983b5fabe08.zip
Updated workflow to match new lpm changes. (#297)
* Updated workflow to match new lpm changes. * Added in explanatory comment. * Updated manifest to have language tag. * Updated to split off languages. * Updated to split off libraries. * Updated tables with borders. * Rearranged tables. * Whoops. * Updated threads description. * Updated README.md.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/workflow.yml16
1 files changed, 12 insertions, 4 deletions
diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml
index 91fa792..e899b17 100644
--- a/.github/workflows/workflow.yml
+++ b/.github/workflows/workflow.yml
@@ -11,12 +11,20 @@ jobs:
- uses: actions/checkout@v2
- name: Generate table with `lpm`
run: |
- wget https://github.com/lite-xl/lite-xl-plugin-manager/releases/download/latest/lpm.x86_64-linux -O lpm
- chmod +x lpm
- ./lpm table manifest.json README.md
+ wget https://github.com/lite-xl/lite-xl-plugin-manager/releases/download/latest/lpm.x86_64-linux -O lpm && chmod +x lpm
+ # Remove everything after the --- so we can regenerate it.
+ perl -pi -e 'exit(0) if $_ =~ m/^\-\-\-/' README.md && echo -e "---" >> README.md
+ echo -e "\n## Plugins\n" >> README.md
+ ./lpm init . --userdir .
+ ./lpm list --table url,description --header Plugin,Description --type plugin --tag '!language' --status '!core' --userdir . >> README.md
+ echo -e "\n## Languages\n" >> README.md
+ ./lpm list --table url,description --header Language,Description --type plugin --tag 'language' --userdir . >> README.md
+ echo -e "\n## Libraries\n" >> README.md
+ ./lpm list --table url,description --header Library,Description --type library --userdir . >> README.md
+ ./lpm purge --userdir .
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
+ git add README.md
git commit -m '[CI] Updated README.md.'
git push
fi