I want to check inside a github action whether a branch (e.g. "main") exists. I tried
    - name: get Branch
      run: |
        export BRANCHES=git branch -r
        echo "${{ contains($BRANCHES, 'main') }}"
But this is apparently a syntax error.
Can somebody tell me how to do this properly?
