danbev commited on
Commit
d237704
·
unverified ·
1 Parent(s): a216359

ci : add missing env.branch_name to build.yml (#2896)

Browse files

This commit adds the missing env.branch_name to the build.yml file.

The motivation for this is that the currently the build is failing
during the release job because the branch_name is not set in the
an invalid tag is being used.

Files changed (1) hide show
  1. .github/workflows/build.yml +1 -0
.github/workflows/build.yml CHANGED
@@ -32,6 +32,7 @@ permissions:
32
  contents: write # for creating release
33
 
34
  env:
 
35
  ubuntu_image: "ubuntu:22.04"
36
  VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
37
 
 
32
  contents: write # for creating release
33
 
34
  env:
35
+ BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
36
  ubuntu_image: "ubuntu:22.04"
37
  VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
38