GITHUB_ENV
Auto-PR Check/Creation and TF/OpenTofu Plan / Check and Create PR (push) Successful in 18s
Auto-PR Check/Creation and TF/OpenTofu Plan / OpenTofu Plan (push) Failing after 27m45s

This commit is contained in:
2025-10-23 13:27:06 -04:00
parent 5d4e1b371c
commit 41789f6cca
+19 -2
View File
@@ -103,10 +103,27 @@ jobs:
HC_VAULT_SECRETS_PATH: tar-valon-terraform/env
ENV_FILE_NAME: cloudflare/.env
- name: Export env vars from Vault .env
run: |
echo "🧩 Cleaning and loading cloudflare/.env into GitHub Actions environment..."
# 1️⃣ Strip any single or double quotes from the file to avoid invalid URIs or extra quoting
sed -i 's/[\"'\'']//g' cloudflare/.env
# 2️⃣ Load all vars into current shell
set -a
source cloudflare/.env
set +a
# 3️⃣ Export to GitHub Actions environment
while IFS='=' read -r key value; do
if [[ -n "$key" ]]; then
echo "$key=$value" >> $GITHUB_ENV
fi
done < cloudflare/.env
- name: Run tofu init
uses: dnogu/tofu-init@v1
env:
AWS_REGION: ${AWS_DEFAULT_REGION}
with:
working-directory: .
chdir: cloudflare