Skip to content

Commit 75a8e34

Browse files
committed
double escape in workflow
1 parent 0529911 commit 75a8e34

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/regression-test.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
continue-on-error: true
5959
run: >-
6060
uv run nox -s regression_tests-${{ matrix.python-version }} --
61-
"$BASE_REF" "$HEAD_REF" | tee $REGRESSION_TEST_OUTPUT_FILE
61+
"${BASE_REF}" "${HEAD_REF}" | tee ${REGRESSION_TEST_OUTPUT_FILE}
6262
env:
6363
BASE_REF: ${{ github.event.pull_request.base.ref }}
6464
HEAD_REF: ${{ github.event.pull_request.head.ref }}
@@ -68,13 +68,13 @@ jobs:
6868
id: extract_comment
6969
if: failure()
7070
run: >-
71-
f=$REGRESSION_TEST_OUTPUT_FILE; start=$(grep -n -m1 'Performance has
72-
regressed:' "$f" | cut -d: -f1)
71+
f=${REGRESSION_TEST_OUTPUT_FILE}; start=$(grep -n -m1 'Performance has
72+
regressed:' "${f}" | cut -d: -f1)
7373
|| { echo "No match"; exit 1; };
74-
s_dash=$(awk -v n=$start 'NR<=n && /^-+$/ {l=NR} END{print l}' "$f");
75-
e_dash=$(awk -v n=$start 'NR>=n && /^-+$/ {print NR; exit}' "$f");
76-
PR_COMMENT_MSG=$(sed -n "${s_dash},${e_dash}p" "$f"); echo
77-
"PR_COMMENT_MSG=$PR_COMMENT_MSG" >> $GITHUB_OUTPUT;
74+
s_dash=$(awk -v n=${start} 'NR<=n && /^-+$/ {l=NR} END{print l}'
75+
"${f}"); e_dash=$(awk -v n=${start} 'NR>=n && /^-+$/ {print NR; exit}'
76+
"${f}"); PR_COMMENT_MSG=$(sed -n "${s_dash},${e_dash}p" "${f}"); echo
77+
"PR_COMMENT_MSG=${PR_COMMENT_MSG}" >> ${GITHUB_OUTPUT};
7878
7979
- name: Write PR comment
8080
if: failure()

0 commit comments

Comments
 (0)