I cannot figure out how to populate a Github Action job environment variable via bash command.
I have tried this:
- name: Environment Variables
run: |
echo ::set-env name=DJANGO_SECRET_KEY::"${{ secrets.DJANGO_SECRET_KEY }}"
and this:
- name: Environment Variables
run: |
echo ::set-env name=DJANGO_SECRET_KEY::${{ secrets.DJANGO_SECRET_KEY }}
however neither seem to work.
I don't want to do it the normal way:
- name: Environment Variables
env:
DJANGO_SECRET_KEY: ${{ secrets.DJANGO_SECRET_KEY }}
as these env variables don't seem to persist between different steps in the job. Is there a way to do this?