salmon-carpet-1576
05/14/2024, 11:04 PMesc
to set env vars in GitHub Actions too. Has anyone explored this? There are two motivations
• Single source of truth. We don't have to update secrets in multiple places
• Run the same GitHub actions with different env vars. We have deployment action that we'd like to re-use between staging and production. The only difference is the env vars
Any ideas welcome!salmon-carpet-1576
05/15/2024, 12:00 AMeval $(esc env open $DEPLOY_ENV --format shell)
salmon-carpet-1576
05/15/2024, 12:26 AMesc env get $DEPLOY_ENV --value dotenv >> "$GITHUB_ENV"
enough-architect-32336
05/18/2024, 12:10 AMesc env open $DEPLOY_ENV --format dotenv >> $GITHUB_ENV
enough-architect-32336
05/18/2024, 12:12 AMsalmon-carpet-1576
05/20/2024, 1:54 AMsalmon-carpet-1576
05/20/2024, 2:36 AMdotenv
format before appending to $GITHUB_ENV
esc env open dosu/staging --format dotenv | sed 's/="\([^"]*\)"/=\1/' | $GITHUB_ENV