mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-05 12:40:27 +00:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d612fc86be | ||
|
|
b3b9147ed7 | ||
|
|
f4abeafc99 | ||
|
|
0180de5ee1 | ||
|
|
008e9ca06e |
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@@ -24,16 +24,15 @@ jobs:
|
||||
matrix:
|
||||
os:
|
||||
- ubuntu-18.04
|
||||
- macos-10.15
|
||||
tool:
|
||||
- cargo-hack,cargo-llvm-cov,cargo-minimal-versions,parse-changelog,cross,shellcheck,shfmt
|
||||
- cargo-hack@0.5.9,cargo-llvm-cov@0.1.13,cargo-minimal-versions@0.1.0,parse-changelog@0.4.5,cross@0.2.1,shellcheck@0.8.0,shfmt@3.4.2
|
||||
- cargo-hack@0.5.10,cargo-llvm-cov@0.1.15,cargo-minimal-versions@0.1.1,parse-changelog@0.4.6,cross@0.2.1,shellcheck@0.8.0,shfmt@3.4.2
|
||||
include:
|
||||
- os: macos-10.15
|
||||
tool: cargo-hack@0.5.9,cargo-llvm-cov@0.1.13,cargo-minimal-versions@0.1.0,parse-changelog@0.4.5,cross@0.2.1,shellcheck@0.8.0,shfmt@3.4.2
|
||||
- os: windows-2019
|
||||
tool: cargo-hack,cargo-llvm-cov,cargo-minimal-versions,parse-changelog
|
||||
- os: windows-2019
|
||||
tool: cargo-hack@0.5.9,cargo-llvm-cov@0.1.13,cargo-minimal-versions@0.1.0,parse-changelog@0.4.5,cross@0.2.1
|
||||
tool: cargo-hack@0.5.10,cargo-llvm-cov@0.1.15,cargo-minimal-versions@0.1.1,parse-changelog@0.4.6,cross@0.2.1
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
14
CHANGELOG.md
14
CHANGELOG.md
@@ -10,6 +10,14 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [1.0.3] - 2022-01-06
|
||||
|
||||
- Update `cargo-llvm-cov@latest` to 0.1.15.
|
||||
|
||||
## [1.0.2] - 2022-01-05
|
||||
|
||||
- Update `cargo-minimal-versions@latest` to 0.1.1.
|
||||
|
||||
## [1.0.1] - 2022-01-05
|
||||
|
||||
- Fix error in cases where the release has been created but the binary has not yet been uploaded.
|
||||
@@ -18,6 +26,8 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
|
||||
|
||||
Initial release
|
||||
|
||||
[Unreleased]: https://github.com/taiki-e/install-action/compare/v1.0.1...HEAD
|
||||
[1.0.1]: https://github.com/taiki-e/create-gh-release-action/compare/v1.0.0...v1.0.1
|
||||
[Unreleased]: https://github.com/taiki-e/install-action/compare/v1.0.3...HEAD
|
||||
[1.0.3]: https://github.com/taiki-e/install-action/compare/v1.0.2...v1.0.3
|
||||
[1.0.2]: https://github.com/taiki-e/install-action/compare/v1.0.1...v1.0.2
|
||||
[1.0.1]: https://github.com/taiki-e/install-action/compare/v1.0.0...v1.0.1
|
||||
[1.0.0]: https://github.com/taiki-e/install-action/releases/tag/v1.0.0
|
||||
|
||||
@@ -39,7 +39,7 @@ To install a specific version, use `@version` syntax:
|
||||
```yaml
|
||||
- uses: taiki-e/install-action@v1
|
||||
with:
|
||||
tool: cargo-hack@0.5.9
|
||||
tool: cargo-hack@0.5.10
|
||||
```
|
||||
|
||||
To install multiple tools:
|
||||
|
||||
8
main.sh
8
main.sh
@@ -28,7 +28,7 @@ warn() {
|
||||
echo "::warning::$*"
|
||||
}
|
||||
info() {
|
||||
echo >&2 "info: $*"
|
||||
echo "info: $*"
|
||||
}
|
||||
|
||||
if [[ $# -gt 0 ]]; then
|
||||
@@ -59,9 +59,9 @@ for tool in "${tools[@]}"; do
|
||||
# https://github.com/taiki-e/cargo-hack/releases
|
||||
cargo-hack) latest_version="0.5.10" ;;
|
||||
# https://github.com/taiki-e/cargo-llvm-cov/releases
|
||||
cargo-llvm-cov) latest_version="0.1.13" ;;
|
||||
cargo-llvm-cov) latest_version="0.1.15" ;;
|
||||
# https://github.com/taiki-e/cargo-minimal-versions/releases
|
||||
cargo-minimal-versions) latest_version="0.1.0" ;;
|
||||
cargo-minimal-versions) latest_version="0.1.1" ;;
|
||||
# https://github.com/taiki-e/parse-changelog/releases
|
||||
parse-changelog) latest_version="0.4.6" ;;
|
||||
*) exit 1 ;;
|
||||
@@ -144,5 +144,5 @@ for tool in "${tools[@]}"; do
|
||||
cargo-*) x cargo "${tool#cargo-}" --version ;;
|
||||
*) x "${tool}" --version ;;
|
||||
esac
|
||||
echo >&2
|
||||
echo
|
||||
done
|
||||
|
||||
@@ -37,6 +37,9 @@ echo "============== CHANGELOG =============="
|
||||
parse-changelog CHANGELOG.md "${version}"
|
||||
echo "======================================="
|
||||
|
||||
if ! grep <CHANGELOG.md -E "^## \\[${version//./\\.}\\] - $(date --utc '+%Y-%m-%d')$" >/dev/null; then
|
||||
bail "not found section '[${version}] - $(date --utc '+%Y-%m-%d')' in CHANGELOG.md"
|
||||
fi
|
||||
if ! grep <CHANGELOG.md -E "^\\[${version//./\\.}\\]: " >/dev/null; then
|
||||
bail "not found link to [${version}] in CHANGELOG.md"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user