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

19
tools/manifest.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
cd "$(dirname "$0")"/..
# Update manifests
#
# USAGE:
# ./tools/manifest.sh [PACKAGE [VERSION_REQ]]
if [[ $# -gt 0 ]]; then
cargo run --release -p install-action-internal-codegen -- "$@"
exit 0
fi
for manifest in tools/codegen/base/*.json; do
package="$(basename "${manifest%.*}")"
cargo run --release -p install-action-internal-codegen -- "${package}" latest
done