If some one else is searching for a solution:
You you have to explicityexplicitly pass the environment variables to the bash script. Otherwise they are not available.:
name: x-pull-request
on: pull_request
env:
FOO: bar
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: does a thing
run: ./scripts/do-a-thing.sh $FOO
Andand in the Scriptscript you have to map the parameter to a variable.
X=$1
echo "X: $X" # X: default
Hope this helps.