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 26
26
dir_names_max_depth : 2
27
27
- name : test pr
28
28
run : |
29
+ bash scripts/terraform-install.sh
29
30
folders="${{ steps.changed-files.outputs.all_changed_files }}"
30
31
for f in ${folders//,/ }
31
32
do
Original file line number Diff line number Diff line change 47
47
dir_names_max_depth : 2
48
48
- name : pr-check
49
49
run : |
50
+ bash scripts/terraform-install.sh
50
51
CHANGED_FOLDERS="${{ steps.changed-files.outputs.all_changed_files }}"
51
52
if [ -z "${{ github.event.number }}" ]; then
52
53
CHANGED_FOLDERS=$(find ./quickstarts -maxdepth 1 -mindepth 1 -type d | tr '\n' ',')
53
54
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
58
55
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