I copy my .env.example
file:
- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
But I also want to have override variables in the .env
file. I have tried:
- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
env:
DB_DATABASE: test_db
DB_USER: root
DB_PASSWORD: root
But the new variables I assign in the YAML file do not override variables in the .env
file. How can I override variables in my .env
file in the Actions script?