Skip to content

Commit 798c7b8

Browse files
committed
add the tag_name back into the workflow
Signed-off-by: Andrew Brandt <[email protected]>
1 parent e046762 commit 798c7b8

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

.github/workflows/zxf-single-day-perf-test.yaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,20 @@ jobs:
2929
with:
3030
egress-policy: audit
3131

32-
# # Get the `build-XXXXX' tag (latest tag) to run the performance test
33-
# # use it later as ${{ steps.tag.outputs.tag }}
34-
# - name: Get Build Tag
35-
# id: tag
36-
# run: |
37-
# if [[ "${GITHUB_REF}" == refs/tags/* ]]; then
38-
# # Triggered by tag push
39-
# tag_name="${GITHUB_REF#refs/tags/}"
40-
# else
41-
# # Triggered by workflow_dispatch
42-
# tag_name="${{ github.event.inputs.tag-to-run }}"
43-
# fi
44-
# echo "Using tag: $tag_name"
45-
# echo "tag_name=$tag_name" >> "$GITHUB_OUTPUT"
32+
# Get the `build-XXXXX' tag (latest tag) to run the performance test
33+
# use it later as ${{ steps.tag.outputs.tag }}
34+
- name: Get Build Tag
35+
id: tag
36+
run: |
37+
if [[ "${GITHUB_REF}" == refs/tags/* ]]; then
38+
# Triggered by tag push
39+
tag_name="${GITHUB_REF#refs/tags/}"
40+
else
41+
# Triggered by workflow_dispatch
42+
tag_name="${{ github.event.inputs.tag-to-run }}"
43+
fi
44+
echo "Using tag: $tag_name"
45+
echo "tag_name=$tag_name" >> "$GITHUB_OUTPUT"
4646
#
4747
# # Clone the perf analysis automation repo
4848
# - name: Checkout the performance analysis automation repo
@@ -70,7 +70,7 @@ jobs:
7070
token: ${{ secrets.PERF_ANALYSIS_TOKEN }}
7171
inputs: '{
7272
"namespace": "Latitude3",
73-
"hederaversion": "main",
73+
"hederaversion": "${{ steps.tag.outputs.tag_name }}",
7474
"soloversion": "latest_tested_solo-charts0.59",
7575
"NLG_Accounts": "100000000",
7676
"NLG_Time": "330m",

0 commit comments

Comments
 (0)