Skip to content

Commit 0851598

Browse files
committed
Use setup-env outputs for shfmt version
We change the "Install shfmt" step to use two local environment variables to provide the package's URL and version to install. This allows us to work around `yamllint` line length limits.
1 parent 64b2471 commit 0851598

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,10 @@ jobs:
8282
with:
8383
terraform_version: ${{ steps.setup-env.outputs.terraform-version }}
8484
- name: Install shfmt
85-
run: go install mvdan.cc/sh/v3/cmd/shfmt@${SHFMT_VERSION}
85+
env:
86+
PACKAGE_URL: mvdan.cc/sh/v3/cmd/shfmt
87+
PACKAGE_VERSION: ${{ steps.setup-env.outputs.shfmt-version }}
88+
run: go install ${PACKAGE_URL}@${PACKAGE_VERSION}
8689
- name: Install Terraform-docs
8790
run: |
8891
go install \

0 commit comments

Comments
 (0)