I have been working on GitHub Actions from quite some time now, and we have a designated workflow in place. The workflow has been written in yaml.
I am trying to put some if condition for the github.ref and that block of the yaml is being skipped on the run.
It means - if the pull request is raised against X branch - that block of code should run.
Something like this:
- name: Branch name check - Running only for DEV branch..
if: ${{contains(github.ref, 'DEV*')}}
uses: mathrix-education/sonar-scanner@master
with:
version: 4.2.0.1873 # required
typescript: false
scan: true
Can anyone help me out on this ?