mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-10 14:40:32 +00:00
Manage package info as JSON
This commit is contained in:
19
tools/manifest.sh
Executable file
19
tools/manifest.sh
Executable 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
|
||||
Reference in New Issue
Block a user