Skip to content

Commit

Permalink
Updated workflow to match new lpm changes. (#297)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
adamharrison authored Oct 10, 2023
1 parent e7f7c23 commit add3c17
Show file tree
Hide file tree
Showing 3 changed files with 403 additions and 298 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading

0 comments on commit add3c17

Please sign in to comment.