Manage package info as JSON

This commit is contained in:
Taiki Endo
2022-12-24 21:49:18 +09:00
parent 830660609d
commit f1683d2c7c
31 changed files with 1152 additions and 360 deletions

21
ci/manifest.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
set -euxo pipefail
IFS=$'\n\t'
cd "$(dirname "$0")"/..
git config user.name "Taiki Endo"
git config user.email "te316e89@gmail.com"
for manifest in manifests/*.json; do
git add -N "${manifest}"
if ! git diff --exit-code -- "${manifest}"; then
name="$(basename "${manifest%.*}")"
git add "${manifest}"
git commit -m "Update ${name}"
has_update=1
fi
done
if [[ -n "${has_update:-}" ]]; then
echo "success=false" >>"${GITHUB_OUTPUT}"
fi