File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 2626 dir_names_max_depth : 2
2727 - name : test pr
2828 run : |
29+ bash scripts/terraform-install.sh
2930 folders="${{ steps.changed-files.outputs.all_changed_files }}"
3031 for f in ${folders//,/ }
3132 do
Original file line number Diff line number Diff line change 4747 dir_names_max_depth : 2
4848 - name : pr-check
4949 run : |
50+ bash scripts/terraform-install.sh
5051 CHANGED_FOLDERS="${{ steps.changed-files.outputs.all_changed_files }}"
5152 if [ -z "${{ github.event.number }}" ]; then
5253 CHANGED_FOLDERS=$(find ./quickstarts -maxdepth 1 -mindepth 1 -type d | tr '\n' ',')
5354 fi
54- if [ ! -f /usr/local/bin/terraform ]; then
55- wget -q https://releases.hashicorp.com/terraform/1.6.0/terraform_1.6.0_linux_amd64.zip
56- unzip terraform_1.6.0_linux_amd64.zip -d /usr/local/bin/
57- fi
5855 bash scripts/terraform-validate.sh ${CHANGED_FOLDERS}
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ if [ ! -f /usr/local/bin/terraform ]; then
4+ wget -q https://releases.hashicorp.com/terraform/1.6.0/terraform_1.6.0_linux_amd64.zip
5+ unzip terraform_1.6.0_linux_amd64.zip -d /usr/local/bin/
6+ fi
7+
8+ exit 0
You can’t perform that action at this time.
0 commit comments