diff options
author | Adam <adamdharrison@gmail.com> | 2024-03-20 12:52:51 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-20 17:52:51 +0100 |
commit | 82350d350a6831a246e581b38ff16e201fae4d4d (patch) | |
tree | d8ee35caa45225aff8b2f6a94858445ae3070036 /.github | |
parent | dd76a62c10c6837a104944312b708286085bed09 (diff) | |
download | lite-xl-plugins-82350d350a6831a246e581b38ff16e201fae4d4d.tar.gz lite-xl-plugins-82350d350a6831a246e581b38ff16e201fae4d4d.zip |
Update CI to canonize manifest.json (#391)
* Updated workflow.
* Added check for manifest order update.
* Added trailing newline.
* Sigh.
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/workflow.yml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index df606e5..e3c1ccc 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -21,10 +21,11 @@ jobs: ./lpm-latest list --table url,description --header Language,Description --type plugin --tag 'language' --userdir . >> README.md echo -e "\n## Libraries\n" >> README.md ./lpm-latest list --table url,description --header Library,Description --type library --userdir . >> README.md + ./lpm-latest exec 'common.write("manifest.json", json.encode(json.decode(common.read("manifest.json")), { pretty = true }) .. "\n")' --userdir . ./lpm-latest purge --userdir . - if ! git diff --exit-code -s README.md; then + if ! git diff --exit-code -s README.md manifest.json; then git config --global user.name "Github Actions" && git config --global user.email "<>" - git add README.md - git commit -m '[CI] Updated README.md.' + git add README.md manifest.json + git commit -m '[CI] Updated README.md and manifest.json.' git push fi |