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 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