I'm new to github actions.
Below is my workflow:
name: Example
on: [push, workflow_dispatch]
env:
APPNAME: 'myapp1'
APPURL: "https://mybank/$APPNAME/widgets/hello.json"
jobs:
test:
runs-on: windows-latest
steps:
- name: Print variables
run: |
echo "APPURL is: ${{ env.APPURL }}"
Output:
Run echo "APPURL is: https://mybank/$APPNAME/widgets/hello.json"
APPURL is: https://mybank//widgets/hello.json
I understand that env.
cannot be used under at workflow level.
Is it possible to have variable interpolation APPNAME
at workflow level i.e for APPURL
?