Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Created September 15, 2022 21:04
Show Gist options
  • Select an option

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

Select an option

Save KyMidd/7694a8a5bf56cd435c73de5d916e0c5b to your computer and use it in GitHub Desktop.
# Write envs to file, must write or variable isn't available in other jobs
echo "short_region=$short_region" | tee -a $GITHUB_ENV env.vars
echo "region=$region" | tee -a $GITHUB_ENV env.vars
echo "account_id=$account_id" | tee -a $GITHUB_ENV env.vars
echo "aws_assume_role_arn=$aws_assume_role_arn" | tee -a $GITHUB_ENV env.vars
- name: Cache Envs
id: cache-envs
uses: actions/upload-artifact@v3
with:
name: env-cache-${{ github.run_id }}
retention-days: 90
path: env.vars
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment