Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit 574b593

Browse files
authored
switch to pattern matching for downloads (#1007)
1 parent 2a3dd2c commit 574b593

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/docs-parity-updates.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
env:
5858
GITHUB_TOKEN: ${{ secrets.PRO_ACCESS_TOKEN }}
5959
REPOSITORY_NAME: localstack-ext
60-
ARTIFACT_ID: parity-metric-ext-raw
60+
ARTIFACT_ID: parity-metric-ext-raw-*
6161
WORKFLOW: "Build, Test, Push"
6262
PREFIX_ARTIFACT: pro-integration-test
6363

scripts/get_latest_github_metrics.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ fi
5151
echo "Trying to download file with runid $RUN_ID..."
5252

5353
# we do not want to exit if this command fails -> using or true
54-
gh run download $RUN_ID --repo $REPOSITORY_OWNER/$REPOSITORY_NAME -n $ARTIFACT_ID -D $TMP_FOLDER || true
54+
gh run download $RUN_ID --repo $REPOSITORY_OWNER/$REPOSITORY_NAME -p "$ARTIFACT_ID" -D $TMP_FOLDER || true
5555

5656
# count the files with the pattern (we do not know the exact name) to check if we downloaded something
5757
if [ 0 -lt $(ls $TMP_FOLDER 2>/dev/null | wc -w) ]; then
@@ -91,10 +91,10 @@ echo "Moving artifact to $TARGET_FOLDER"
9191
mkdir -p $TARGET_FOLDER
9292
if [[ -z "${PREFIX_ARTIFACT}" ]]; then
9393
# pro implementation_coverage artifact download has a subfolder "pro"
94-
cp -R $TMP_FOLDER/* $TARGET_FOLDER
94+
cp -R $TMP_FOLDER/**/* $TARGET_FOLDER
9595
else
9696
# metrics-raw-data artifacts -> we are only want to keept the csv and rename it
97-
for file in $TMP_FOLDER/*.csv; do
97+
for file in $TMP_FOLDER/**/*.csv; do
9898
org_file_name=$(echo $file | sed "s/.*\///")
9999
mv -- "$file" "$TARGET_FOLDER/$PREFIX_ARTIFACT-$org_file_name"
100100
done

0 commit comments

Comments
 (0)