From 82350d350a6831a246e581b38ff16e201fae4d4d Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 20 Mar 2024 12:52:51 -0400 Subject: Update CI to canonize manifest.json (#391) * Updated workflow. * Added check for manifest order update. * Added trailing newline. * Sigh. --- .github/workflows/workflow.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to '.github') 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 -- cgit v1.2.3