At the start of my workflow I want to conditionally set values for some ENV variables. These values should be global and apply to all jobs and steps. The following code is structurally invalid but it’s what I’m trying to accomplish
if: github.ref_name == "target branch" (for example)
env:
var1: 'Right Branch'
if: github.ref_name != "target branch"
env:
var1: 'Wrong Branch'
jobs:
...