@@ -135,9 +135,11 @@ jobs:
135135
136136 - name : Choose perf suites
137137 id : choose_perf
138+ env :
139+ COMMENT_BODY : ${{ github.event.comment.body }}
138140 run : |
139- suites="$(printf '%s' "${{ github.event.comment.body }} " | awk '{print $1}')"
140- tags="$(printf '%s' "${{ github.event.comment.body }} " | awk '{print $2}')"
141+ suites="$(printf '%s' "$COMMENT_BODY " | awk '{print $1}')"
142+ tags="$(printf '%s' "$COMMENT_BODY " | awk '{print $2}')"
141143
142144 if [[ $suite == "/flamegraph" ]]; then
143145 suites="02-flamegraph"
@@ -166,15 +168,18 @@ jobs:
166168
167169 - name : Find compared versions
168170 id : compare_versions
171+ env :
172+ PR_BASE_REF : ${{ github.event.pull_request.base.ref }}
173+ COMMENT_BODY : ${{ github.event.comment.body }}
169174 run : |
170- pr_ref=$(echo "${{ github.event.pull_request.base.ref }} ")
171- custom_vers="$(printf '%s' "${{ github.event.comment.body }} " | awk '{print $3}')"
175+ pr_ref=$(echo "$PR_BASE_REF ")
176+ custom_vers="$(printf '%s' "$COMMENT_BODY " | awk '{print $3}')"
172177
173178 if [[ ! -z "${pr_ref}" ]]; then
174179 vers="git:${{ github.head_ref }},git:${pr_ref}"
175180 elif [[ ! -z "${custom_vers}" ]]; then
176181 vers="${custom_vers}"
177- elif [[ ! -z "${{ github.event.comment.body }} " ]]; then
182+ elif [[ ! -z "$COMMENT_BODY " ]]; then
178183 vers="git:${{ steps.comment-branch.outputs.head_ref}},git:${{ steps.comment-branch.outputs.base_ref}}"
179184 else # is cron job/on master
180185 vers="git:master,git:origin/master~10,git:origin/master~50"
0 commit comments