Skip to content

Instantly share code, notes, and snippets.

@remarkablemark
Created April 27, 2022 00:41
Show Gist options
  • Save remarkablemark/933a6ac3d3f8ca69d2d657f3f19143bb to your computer and use it in GitHub Desktop.
Save remarkablemark/933a6ac3d3f8ca69d2d657f3f19143bb to your computer and use it in GitHub Desktop.
- name: Copy environment variables to Heroku app
if: github.event.action == 'opened'
run: |
heroku config --shell --app=my-development-app > .env
cat .env | tr '\n' ' ' | xargs heroku config:set --app=${{ env.HEROKU_APP_NAME }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment