I\'m building docker images with Github Actions and want to tags images with branch name, I found only GITHUB_REF variable, but it results in refs/heads/f
GITHUB_REF
refs/heads/f
if: github.ref == 'refs/heads/integration' && github.event_name == 'push'
You can use the above command and replace whatever branch or event you want to run for.