Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Created June 19, 2023 20:58
Show Gist options
  • Select an option

  • Save KyMidd/e01b1f2b29a78cf9b3cac763276f5466 to your computer and use it in GitHub Desktop.

Select an option

Save KyMidd/e01b1f2b29a78cf9b3cac763276f5466 to your computer and use it in GitHub Desktop.
# Write envs to file, must write or variable isn't available in other jobs
echo "location=$location" | tee -a $GITHUB_ENV
echo "tf_storage_resource_group_name=$tf_storage_resource_group_name" | tee -a $GITHUB_ENV
echo "tf_storage_account_name=$tf_storage_account_name" | tee -a $GITHUB_ENV
echo "tf_storage_container_name=$tf_storage_container_name" | tee -a $GITHUB_ENV
echo "tf_state_filename=$tf_state_filename" | tee -a $GITHUB_ENV
echo "TF_APPLY_ENV=$TF_APPLY_ENV" | tee -a $GITHUB_ENV
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment