@@ -76,33 +76,29 @@ jobs:
7676 run : |
7777 # variables for formula
7878 branch="${{ github.head_ref }}"
79+ build_version=${{ inputs.release_version }}
7980 commit=${{ inputs.release_commit }}
8081
8182 # check the branch variable
8283 if [ -z "$branch" ]
8384 then
8485 echo "This is a PUSH event"
85- build_version=${{ inputs.release_tag }}
8686 clone_url=${{ github.event.repository.clone_url }}
8787 branch="${{ github.ref_name }}"
8888 default_branch="${{ github.event.repository.default_branch }}"
8989
9090 if [ "${{ matrix.release }}" == "true" ]; then
9191 # we will publish the formula with the release tag
9292 tag="${{ inputs.release_tag }}"
93- version="${{ inputs.release_version }}"
9493 else
9594 tag="${{ github.ref_name }}"
96- version="0.0.${{ github.run_number }}"
9795 fi
9896 else
9997 echo "This is a PR event"
100- build_version="0.0.${{ github.event.number }}"
10198 clone_url=${{ github.event.pull_request.head.repo.clone_url }}
10299 branch="${{ github.event.pull_request.head.ref }}"
103100 default_branch="${{ github.event.pull_request.head.repo.default_branch }}"
104101 tag="${{ github.event.pull_request.head.ref }}"
105- version="0.0.${{ github.event.number }}"
106102 fi
107103 echo "Branch: ${branch}"
108104 echo "Clone URL: ${clone_url}"
@@ -113,7 +109,6 @@ jobs:
113109 -B build \
114110 -S . \
115111 -DBUILD_VERSION="${build_version}" \
116- -DFORMULA_VERSION="${version}" \
117112 -DGITHUB_BRANCH="${branch}" \
118113 -DGITHUB_COMMIT="${commit}" \
119114 -DGITHUB_CLONE_URL="${clone_url}" \
0 commit comments