mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-05 20:50:27 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
80a23c5ba9 | ||
|
|
5c17a3192f | ||
|
|
4bb73acd2d |
152
.github/workflows/release.yml
vendored
152
.github/workflows/release.yml
vendored
@@ -39,6 +39,7 @@ jobs:
|
|||||||
fallback: none
|
fallback: none
|
||||||
- id: check
|
- id: check
|
||||||
run: |
|
run: |
|
||||||
|
set +x
|
||||||
IFS=$'\n\t'
|
IFS=$'\n\t'
|
||||||
trap -- 's=$?; printf >&2 "%s\n" "${0##*/}:${LINENO}: \`${BASH_COMMAND}\` exit with ${s}"; exit ${s}' ERR
|
trap -- 's=$?; printf >&2 "%s\n" "${0##*/}:${LINENO}: \`${BASH_COMMAND}\` exit with ${s}"; exit ${s}' ERR
|
||||||
retry() {
|
retry() {
|
||||||
@@ -222,6 +223,7 @@ jobs:
|
|||||||
- name: Create and push release commit and tag
|
- name: Create and push release commit and tag
|
||||||
id: push
|
id: push
|
||||||
run: |
|
run: |
|
||||||
|
set +x
|
||||||
IFS=$'\n\t'
|
IFS=$'\n\t'
|
||||||
trap -- 's=$?; printf >&2 "%s\n" "${0##*/}:${LINENO}: \`${BASH_COMMAND}\` exit with ${s}"; exit ${s}' ERR
|
trap -- 's=$?; printf >&2 "%s\n" "${0##*/}:${LINENO}: \`${BASH_COMMAND}\` exit with ${s}"; exit ${s}' ERR
|
||||||
retry() {
|
retry() {
|
||||||
@@ -329,90 +331,84 @@ jobs:
|
|||||||
git tag -f "${major_version_tag}"
|
git tag -f "${major_version_tag}"
|
||||||
refs=("refs/heads/releases/${major_version_tag}" "+refs/tags/${major_version_tag}")
|
refs=("refs/heads/releases/${major_version_tag}" "+refs/tags/${major_version_tag}")
|
||||||
|
|
||||||
if [[ "${INSTALL_ACTION}" == 'true' ]]; then
|
tools=()
|
||||||
tools=()
|
for tool in tools/codegen/base/*.json; do
|
||||||
for tool in tools/codegen/base/*.json; do
|
tool="${tool##*/}"
|
||||||
tool="${tool##*/}"
|
tools+=("${tool%.*}")
|
||||||
tools+=("${tool%.*}")
|
done
|
||||||
done
|
# Aliases.
|
||||||
# Aliases.
|
# NB: Update case for aliases in main.sh, tool input option in test-alias job
|
||||||
# NB: Update case for aliases in main.sh, tool input option in test-alias job
|
# in .github/workflows/ci.yml, and match for alias for tools/codegen/src/tools-markdown.rs.
|
||||||
# in .github/workflows/ci.yml, and match for alias for tools/codegen/src/tools-markdown.rs.
|
tools+=(
|
||||||
tools+=(
|
nextest
|
||||||
nextest
|
taplo-cli
|
||||||
taplo-cli
|
typos-cli
|
||||||
typos-cli
|
wasm-bindgen-cli
|
||||||
wasm-bindgen-cli
|
wasmtime-cli
|
||||||
wasmtime-cli
|
)
|
||||||
)
|
# Non-manifest-based tools.
|
||||||
# Non-manifest-based tools.
|
tools+=(valgrind)
|
||||||
tools+=(valgrind)
|
|
||||||
|
|
||||||
branches=()
|
branches=()
|
||||||
for tool in "${tools[@]}"; do
|
for tool in "${tools[@]}"; do
|
||||||
git checkout -b "releases/${tool}"
|
git checkout -b "releases/${tool}"
|
||||||
sed -E "${in_place[@]}" action.yml \
|
sed -E "${in_place[@]}" action.yml \
|
||||||
-e "s/required: true/required: false/g" \
|
-e "s/required: true/required: false/g" \
|
||||||
-e "s/# default: #publish:tool/default: ${tool}/g"
|
-e "s/# default: #publish:tool/default: ${tool}/g"
|
||||||
git add action.yml
|
git add action.yml
|
||||||
git commit -m "${tool}"
|
git commit -m "${tool}"
|
||||||
git tag -f "${tool}"
|
git tag -f "${tool}"
|
||||||
git checkout main
|
git checkout main
|
||||||
refs+=("+refs/heads/releases/${tool}" "+refs/tags/${tool}")
|
refs+=("+refs/heads/releases/${tool}" "+refs/tags/${tool}")
|
||||||
branches+=("releases/${tool}")
|
branches+=("releases/${tool}")
|
||||||
done
|
done
|
||||||
fi
|
|
||||||
|
|
||||||
retry git push origin --atomic "${refs[@]}"
|
retry git push origin --atomic "${refs[@]}"
|
||||||
git branch -d "releases/${major_version_tag}"
|
git branch -d "releases/${major_version_tag}"
|
||||||
|
git branch -D "${branches[@]}"
|
||||||
|
|
||||||
if [[ "${INSTALL_ACTION}" == 'true' ]]; then
|
schema_workspace=/tmp/workspace
|
||||||
git branch -D "${branches[@]}"
|
rm -rf -- "${schema_workspace}"
|
||||||
|
# Checkout manifest-schema branch
|
||||||
schema_workspace=/tmp/workspace
|
schema_version="$(cargo metadata --format-version=1 --no-deps | jq -r '.packages[] | select(.name == "install-action-manifest-schema") | .version')"
|
||||||
rm -rf -- "${schema_workspace}"
|
if [[ "${schema_version}" == "0."* ]]; then
|
||||||
# Checkout manifest-schema branch
|
schema_version="0.$(cut -d. -f2 <<<"${schema_version}")"
|
||||||
schema_version="$(cargo metadata --format-version=1 --no-deps | jq -r '.packages[] | select(.name == "install-action-manifest-schema") | .version')"
|
else
|
||||||
if [[ "${schema_version}" == "0."* ]]; then
|
schema_version="$(cut -d. -f1 <<<"${schema_version}")"
|
||||||
schema_version="0.$(cut -d. -f2 <<<"${schema_version}")"
|
|
||||||
else
|
|
||||||
schema_version="$(cut -d. -f1 <<<"${schema_version}")"
|
|
||||||
fi
|
|
||||||
schema_branch="manifest-schema-${schema_version}"
|
|
||||||
|
|
||||||
git worktree add --force "${schema_workspace}"
|
|
||||||
(
|
|
||||||
cd -- "${schema_workspace}"
|
|
||||||
if git fetch origin "${schema_branch}"; then
|
|
||||||
git checkout "origin/${schema_branch}" -B "${schema_branch}"
|
|
||||||
elif ! git checkout "${schema_branch}"; then
|
|
||||||
# New branch with no history. Credit: https://stackoverflow.com/a/13969482
|
|
||||||
git checkout --orphan "${schema_branch}"
|
|
||||||
git rm -rf -- . || true
|
|
||||||
git commit -m 'Initial commit' --allow-empty
|
|
||||||
fi
|
|
||||||
)
|
|
||||||
|
|
||||||
# Copy over schema
|
|
||||||
cp -- ./manifests/* "${schema_workspace}"
|
|
||||||
|
|
||||||
(
|
|
||||||
cd -- "${schema_workspace}"
|
|
||||||
# Stage changes
|
|
||||||
git add .
|
|
||||||
# Detect changes, then commit and push if changes exist
|
|
||||||
if [[ "$(git status --porcelain=v1 | LC_ALL=C wc -l)" != "0" ]]; then
|
|
||||||
git commit -m 'Update manifest schema'
|
|
||||||
retry git push origin HEAD
|
|
||||||
fi
|
|
||||||
)
|
|
||||||
|
|
||||||
rm -rf -- "${schema_workspace}"
|
|
||||||
git worktree prune
|
|
||||||
# TODO: get branch in schema_workspace dir instead
|
|
||||||
git branch -D "${schema_branch}" "${schema_workspace##*/}"
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
schema_branch="manifest-schema-${schema_version}"
|
||||||
|
|
||||||
|
git worktree add --force "${schema_workspace}"
|
||||||
|
(
|
||||||
|
cd -- "${schema_workspace}"
|
||||||
|
if git fetch origin "${schema_branch}"; then
|
||||||
|
git checkout "origin/${schema_branch}" -B "${schema_branch}"
|
||||||
|
elif ! git checkout "${schema_branch}"; then
|
||||||
|
# New branch with no history. Credit: https://stackoverflow.com/a/13969482
|
||||||
|
git checkout --orphan "${schema_branch}"
|
||||||
|
git rm -rf -- . || true
|
||||||
|
git commit -m 'Initial commit' --allow-empty
|
||||||
|
fi
|
||||||
|
)
|
||||||
|
|
||||||
|
# Copy over schema
|
||||||
|
cp -- ./manifests/* "${schema_workspace}"
|
||||||
|
|
||||||
|
(
|
||||||
|
cd -- "${schema_workspace}"
|
||||||
|
# Stage changes
|
||||||
|
git add .
|
||||||
|
# Detect changes, then commit and push if changes exist
|
||||||
|
if [[ "$(git status --porcelain=v1 | LC_ALL=C wc -l)" != "0" ]]; then
|
||||||
|
git commit -m 'Update manifest schema'
|
||||||
|
retry git push origin HEAD
|
||||||
|
fi
|
||||||
|
)
|
||||||
|
|
||||||
|
rm -rf -- "${schema_workspace}"
|
||||||
|
git worktree prune
|
||||||
|
# TODO: get branch in schema_workspace dir instead
|
||||||
|
git branch -D "${schema_branch}" "${schema_workspace##*/}"
|
||||||
)
|
)
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ needs.prepare.outputs.version }}
|
VERSION: ${{ needs.prepare.outputs.version }}
|
||||||
|
|||||||
@@ -10,6 +10,10 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [2.69.12] - 2026-03-27
|
||||||
|
|
||||||
|
- Update `uv@latest` to 0.11.2.
|
||||||
|
|
||||||
## [2.69.11] - 2026-03-26
|
## [2.69.11] - 2026-03-26
|
||||||
|
|
||||||
- Update `dprint@latest` to 0.53.1.
|
- Update `dprint@latest` to 0.53.1.
|
||||||
@@ -6037,7 +6041,8 @@ Note: This release is considered a breaking change because installing on version
|
|||||||
|
|
||||||
Initial release
|
Initial release
|
||||||
|
|
||||||
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.69.11...HEAD
|
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.69.12...HEAD
|
||||||
|
[2.69.12]: https://github.com/taiki-e/install-action/compare/v2.69.11...v2.69.12
|
||||||
[2.69.11]: https://github.com/taiki-e/install-action/compare/v2.69.10...v2.69.11
|
[2.69.11]: https://github.com/taiki-e/install-action/compare/v2.69.10...v2.69.11
|
||||||
[2.69.10]: https://github.com/taiki-e/install-action/compare/v2.69.9...v2.69.10
|
[2.69.10]: https://github.com/taiki-e/install-action/compare/v2.69.9...v2.69.10
|
||||||
[2.69.9]: https://github.com/taiki-e/install-action/compare/v2.69.8...v2.69.9
|
[2.69.9]: https://github.com/taiki-e/install-action/compare/v2.69.8...v2.69.9
|
||||||
|
|||||||
42
manifests/uv.json
generated
42
manifests/uv.json
generated
@@ -40,10 +40,48 @@
|
|||||||
},
|
},
|
||||||
"license_markdown": "[Apache-2.0](https://github.com/astral-sh/uv/blob/main/LICENSE-APACHE) OR [MIT](https://github.com/astral-sh/uv/blob/main/LICENSE-MIT)",
|
"license_markdown": "[Apache-2.0](https://github.com/astral-sh/uv/blob/main/LICENSE-APACHE) OR [MIT](https://github.com/astral-sh/uv/blob/main/LICENSE-MIT)",
|
||||||
"latest": {
|
"latest": {
|
||||||
"version": "0.11.1"
|
"version": "0.11.2"
|
||||||
},
|
},
|
||||||
"0.11": {
|
"0.11": {
|
||||||
"version": "0.11.1"
|
"version": "0.11.2"
|
||||||
|
},
|
||||||
|
"0.11.2": {
|
||||||
|
"x86_64_linux_musl": {
|
||||||
|
"etag": "0x8DE8B7F323A25EC",
|
||||||
|
"hash": "4700d9fc75734247587deb3e25dd2c6c24f4ac69e8fe91d6acad4a6013115c06"
|
||||||
|
},
|
||||||
|
"x86_64_macos": {
|
||||||
|
"etag": "0x8DE8B7F31C027DB",
|
||||||
|
"hash": "a9c3653245031304c50dd60ac0301bf6c112e12c38c32302a71d4fa6a63ba2cb"
|
||||||
|
},
|
||||||
|
"x86_64_windows": {
|
||||||
|
"etag": "0x8DE8B7F323790C2",
|
||||||
|
"hash": "171b7ccda1bbd562da6babeffcf533a1c6cc7862cf998da826e1db534fc43e48"
|
||||||
|
},
|
||||||
|
"aarch64_linux_musl": {
|
||||||
|
"etag": "0x8DE8B7F2F886D82",
|
||||||
|
"hash": "275d91dd1f1955136591e7ec5e1fa21e84d0d37ead7da7c35c3683df748d9855"
|
||||||
|
},
|
||||||
|
"aarch64_macos": {
|
||||||
|
"etag": "0x8DE8B7F2EE6C8C0",
|
||||||
|
"hash": "4beaa9550f93ef7f0fc02f7c28c9c48cd61fe30db00f5ac8947e0a425c3fb282"
|
||||||
|
},
|
||||||
|
"aarch64_windows": {
|
||||||
|
"etag": "0x8DE8B7F2F211F2C",
|
||||||
|
"hash": "ffdded8338205f53727b51d404563a5ac8eaa9aea53279a7b7c42177e11d478c"
|
||||||
|
},
|
||||||
|
"powerpc64le_linux_gnu": {
|
||||||
|
"etag": "0x8DE8B7F30FB6B17",
|
||||||
|
"hash": "3f3a50e99364efc8ff7add10e79757a2b8458700a38180ec5f313524481b9fbc"
|
||||||
|
},
|
||||||
|
"riscv64_linux_gnu": {
|
||||||
|
"etag": "0x8DE8B7F313C97AB",
|
||||||
|
"hash": "e56a93f0ff21d6908461a6ecbf465beae19ae22719f900284abb7680bd07ec41"
|
||||||
|
},
|
||||||
|
"s390x_linux_gnu": {
|
||||||
|
"etag": "0x8DE8B7F3185D17B",
|
||||||
|
"hash": "42ebe40775f2a77a514fa47399fde86473bf35bd33b6896c6410a0309fc4d205"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"0.11.1": {
|
"0.11.1": {
|
||||||
"x86_64_linux_musl": {
|
"x86_64_linux_musl": {
|
||||||
|
|||||||
Reference in New Issue
Block a user