From e443764569c93aa60ecf69abc7af783e292ae86f Mon Sep 17 00:00:00 2001 From: k1LoW Date: Wed, 15 Feb 2023 19:53:32 +0900 Subject: [PATCH 1/2] Support --strict in Action --- scripts/run-gh-setup.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/scripts/run-gh-setup.sh b/scripts/run-gh-setup.sh index 2f21bdd..e75bd55 100755 --- a/scripts/run-gh-setup.sh +++ b/scripts/run-gh-setup.sh @@ -16,9 +16,18 @@ match=${GH_SETUP_MATCH} bin_dir=${GH_SETUP_BIN_DIR} bin_match=${GH_SETUP_BIN_MATCH} force=${GH_SETUP_FORCE} +strict=${GH_SETUP_STRICT} if [ -z "${force}" ]; then - ${bin} --repo ${repo} --version=${version} --os=${os} --arch=${arch} --bin-dir=${bin_dir} --bin-match=${bin_match} + if [ -z "${strict}" ]; then + ${bin} --repo ${repo} --version=${version} --os=${os} --arch=${arch} --bin-dir=${bin_dir} --bin-match=${bin_match} + else + ${bin} --repo ${repo} --version=${version} --os=${os} --arch=${arch} --bin-dir=${bin_dir} --bin-match=${bin_match} + fi else - ${bin} --repo ${repo} --version=${version} --os=${os} --arch=${arch} --bin-dir=${bin_dir} --bin-match=${bin_match} --force + if [ -z "${strict}" ]; then + ${bin} --repo ${repo} --version=${version} --os=${os} --arch=${arch} --bin-dir=${bin_dir} --bin-match=${bin_match} --force + else + ${bin} --repo ${repo} --version=${version} --os=${os} --arch=${arch} --bin-dir=${bin_dir} --bin-match=${bin_match} --force --strict + fi fi From bb8636b9c768f14239dfb0569784e97de207ade2 Mon Sep 17 00:00:00 2001 From: k1LoW Date: Wed, 15 Feb 2023 19:54:59 +0900 Subject: [PATCH 2/2] Fix README --- .github/workflows/ci.yml | 6 ++++-- README.md | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1a3ce1c..7f2d38a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -70,7 +70,8 @@ jobs: with: repo: k1LoW/tbls force: true - gh-setup-version: v0.8.0 + strict: true + gh-setup-version: v0.8.2 - name: Run setup as a action (2/2) run: tbls version @@ -82,7 +83,8 @@ jobs: github-token: '' repo: k1LoW/colr force: true - gh-setup-version: v0.8.0 + strict: true + gh-setup-version: v0.8.2 - name: Run setup as a action (no credentials) (2/2) run: colr -v diff --git a/README.md b/README.md index 7cdab06..cc9b1a2 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,7 @@ $ gh extension install k1LoW/gh-grep # arch: amd64 # bin-match: tbls # force: true + # strict: true # gh-setup-version: latest - name: Run tbls