Using Github Action ${{ context }} in shell script

Currently I’m running into issues trying to get ${{ secrets.ENVIRONMENT_VARIABLE_NAME }} work within a bash script file. Does anyone know if using ${{ }} context is allowed in a bash script file? I can’t find any information on this in the Github Actions documentation

Step sample

- name: Run migrations
  run: sh ./github/scripts/migrate.sh

Within migrate.sh

echo 'HELLO_WORLD='${{ secrets.HELLO_WORLD }} >> .env // Code line 1

Git log error

.github/scripts/migrate.sh: 1: .github/scripts/migrate.sh: Bad substitution  

Hi @empire-jlee , 

I found that there was another ticket with the same content: https://github.community/t5/GitHub-Actions/Using-Github-Action-environment-variables-in-shell-script/m-p/56888

And that ticket has already resolved. So I will consider this one as closed.

If you have any other questions, welcome to GitHub Community Forum.