Skip to content

Commit 57bd9a2

Browse files
committed
debug pull-request checking
1 parent 16791cf commit 57bd9a2

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

.github/workflows/e2e.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
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

.github/workflows/pull_requests.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,9 @@ jobs:
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}

scripts/terraform-install.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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

0 commit comments

Comments
 (0)