Skip to content

Commit 625c72f

Browse files
committed
Fix bug
1 parent 93456e0 commit 625c72f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

devops/actions/benchmarking/aggregate/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ runs:
2323
using: "composite"
2424
steps:
2525
- name: Sanitize provided timestamp
26+
shell: bash
2627
run: |
2728
# Sanitize the cutoff timestamp provided
2829
#
@@ -40,22 +41,25 @@ runs:
4041
# incase user somehow manages to inject extra text, `-o` should take
4142
# care of it.
4243
# - DO NOT use input.cutoff_timestamp directly, only use SANITIZED_TIMESTAMP
43-
SANITIZED_TIMESTAMP="$(echo '${{ input.cutoff_timestamp }}' | grep -oE "$TIMESTAM_RE")"
44+
SANITIZED_TIMESTAMP="$(echo '${{ inputs.cutoff_timestamp }}' | grep -oE "$TIMESTAM_RE")"
4445
if [ -z "$SANITIZED_TIMESTAMP" ]; then
4546
echo "Please ensure input in input.cutoff_timestamp is exactly YYYYMMDD_HHMMSS."
4647
exit 1 # Terminate workflow
4748
fi
4849
echo "SANITIZED_TIMESTAMP=$SANITIZED_TIMESTAMP" >> $GITHUB_ENV
4950
- name: Load benchmarking configuration
51+
shell: bash
5052
run: |
5153
$(python ./devops/scripts/benchmarking/load_config.py ./devops constants)
5254
echo "SANITIZED_PERF_RES_GIT_REPO=$SANITIZED_PERF_RES_GIT_REPO" >> $GITHUB_ENV
5355
echo "SANITIZED_PERF_RES_GIT_BRANCH=$SANITIZED_PERF_RES_GIT_BRANCH" >> $GITHUB_ENV
5456
echo "SANITIZED_PERF_RES_PATH=$SANITIZED_PERF_RES_PATH" >> $GITHUB_ENV
5557
- name: Checkout historical performance results repository
58+
shell: bash
5659
run: |
5760
git clone -b "$SANITIZED_PERF_RES_GIT_BRANCH" "https://github.com/$SANITIZED_PERF_RES_GIT_REPO" "$SANITIZED_PERF_RES_PATH"
5861
- name: Run aggregator on historical results
62+
shell: bash
5963
run: |
6064
# The current format of the historical results respository is:
6165
#
@@ -68,6 +72,7 @@ runs:
6872
python ./devops/scripts/benchmarking/aggregate.py "$test_name" "$dir" "$SANITIZED_TIMESTAMP"
6973
done
7074
- name: Upload average to the repo
75+
shell: bash
7176
run: |
7277
# TODO -- waiting on security clearance
7378
cd "$SANITIZED_PERF_RES_PATH"

0 commit comments

Comments
 (0)