I am needing to set an environment variable based on an execution of shell script, but I haven’t been able to get it to work.
- name: Setup versions run: export VERSION=99.99.99; DATE=`date +%Y%m%d`
values aren’t listed in the
env in the next step.
I did also try:
env: VERSION: 99.99.99 DATE: `date +%Y%m%d`
but that is invalid syntax per YAML.