diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..64284b9 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +--- +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "monthly" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8a711cd..c8c26ee 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,7 +21,7 @@ jobs: - 'macos-latest' - 'ubuntu-latest' steps: - - uses: 'actions/checkout@v2' + - uses: 'actions/checkout@v4' with: fetch-depth: 1 - name: 'Install Dependencies' @@ -30,11 +30,11 @@ jobs: run: './test/run.sh' shell: 'bash' - - uses: 'docker/setup-buildx-action@v2' + - uses: 'docker/setup-buildx-action@v3' if: contains(matrix.os, 'ubuntu') with: install: true - - uses: 'docker/build-push-action@v3' + - uses: 'docker/build-push-action@v5' if: contains(matrix.os, 'ubuntu') with: context: . @@ -60,7 +60,7 @@ jobs: - 'ubuntu-18.04' - 'windows-2019' steps: - - uses: 'actions/checkout@v2' + - uses: 'actions/checkout@v4' with: fetch-depth: 1 - name: 'Install Dependencies' @@ -69,11 +69,11 @@ jobs: run: './test/run.sh' shell: 'bash' - - uses: 'docker/setup-buildx-action@v2' + - uses: 'docker/setup-buildx-action@v3' if: contains(matrix.os, 'ubuntu') with: install: true - - uses: 'docker/build-push-action@v3' + - uses: 'docker/build-push-action@v5' if: contains(matrix.os, 'ubuntu') with: context: . diff --git a/README.md b/README.md index 23b6c0e..1887e0a 100644 --- a/README.md +++ b/README.md @@ -50,11 +50,16 @@ git clone --depth=1 https://github.com/tfutils/tfenv.git ~/.tfenv 2. Add `~/.tfenv/bin` to your `$PATH` any way you like +bash: ```console echo 'export PATH="$HOME/.tfenv/bin:$PATH"' >> ~/.bash_profile ``` +zsh: +```console +$ echo 'export PATH="$HOME/.tfenv/bin:$PATH"' >> ~/.zprofile +``` - For WSL users +For WSL users: ```bash echo 'export PATH=$PATH:$HOME/.tfenv/bin' >> ~/.bashrc ``` @@ -91,7 +96,7 @@ If a parameter is passed, available options: - `latest-allowed` is a syntax to scan your Terraform files to detect which version is maximally allowed. - `min-required` is a syntax to scan your Terraform files to detect which version is minimally required. -See [required_version](https://www.terraform.io/docs/configuration/terraform.html) docs. Also [see min-required & latest-allowed](#min-required) section below. +See [required_version](https://developer.hashicorp.com/terraform/language/settings) docs. Also [see min-required & latest-allowed](#min-required) section below. ```console $ tfenv install diff --git a/libexec/tfenv-min-required b/libexec/tfenv-min-required index 80d91b1..ee1642c 100755 --- a/libexec/tfenv-min-required +++ b/libexec/tfenv-min-required @@ -68,7 +68,7 @@ terraform { required_version = ">= 0.0.0" } -see https://www.terraform.io/docs/configuration/terraform.html for details'; +see https://developer.hashicorp.com/terraform/language/settings for details'; }; declare min_required="$(tfenv-min-required "${TFENV_DIR:-$(pwd)}")";