Install tea pr index step.
Auto-PR Check/Creation and TF/OpenTofu Plan / Check and Create PR (push) Successful in 38s
Auto-PR Check/Creation and TF/OpenTofu Plan / Terraform/OpenTofu Plan (push) Failing after 22s

This commit is contained in:
2025-10-19 14:24:31 -04:00
parent ae01c30aef
commit a091d0b7e2
+17 -15
View File
@@ -73,26 +73,28 @@ jobs:
shell: bash
run: |
set -euo pipefail
cd /tmp
cd /tmp
wget -q "${TEA_DL_URL}"
wget -q "${TEA_DL_URL}.sha256"
wget -q "${TEA_DL_URL}"
wget -q "${TEA_DL_URL}.sha256"
# Extract hash and manually verify file
sha_value=$(cat "tea-${TEA_VERSION}-linux-amd64.sha256")
echo "${sha_value} tea-${TEA_VERSION}-linux-amd64" | sha256sum -c -
# Read only the hash (strip whitespace)
sha_value=$(cat "tea-${TEA_VERSION}-linux-amd64.sha256" | tr -d '[:space:]')
mv "tea-${TEA_VERSION}-linux-amd64" /usr/bin/tea
chmod +x /usr/bin/tea
# Verify using sha256sum
echo "${sha_value} tea-${TEA_VERSION}-linux-amd64" | sha256sum -c -
pr_number=$(tea pr ls --repo "${{ gitea.repository }}" \
--state open \
--fields index,state,head \
--output simple \
| awk '{print $1}')
mv "tea-${TEA_VERSION}-linux-amd64" /usr/bin/tea
chmod +x /usr/bin/tea
echo "${pr_number}"
echo "pr_number=${pr_number}" >> "$GITHUB_OUTPUT"
pr_number=$(tea pr ls --repo "${{ gitea.repository }}" \
--state open \
--fields index,state,head \
--output simple \
| awk '{print $1}')
echo "${pr_number}"
echo "pr_number=${pr_number}" >> "$GITHUB_OUTPUT"
- name: Generate .env from Hashicorp Vault