We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee347ba commit af47bd3Copy full SHA for af47bd3
.github/workflows/publishsizes.yml
@@ -44,16 +44,17 @@ jobs:
44
gh api "$artifacts_url" -q '.artifacts[] | [.name, .archive_download_url] | @tsv' | while read artifact
45
do
46
IFS=$'\t' read name url <<< "$artifact"
47
- gh api $url > "$name.zip"
48
- unzip -j "$name.zip" -d "temp_$name"
49
- if [[ "$name" == "pr_number" ]]; then
50
- mv "temp_$name"/* sizes-report
51
- elif [[ "$name" == "pr_cli"* ]]; then
52
- mv "temp_$name"/* sizes-report/pr
53
- else
54
+ # Only process pr_number and pr_cli_compile artifacts
+ if [[ "$name" == "pr_number" || "$name" =~ ^pr_cli_compile_[0-9]+$ ]]; then
+ gh api $url > "$name.zip"
+ unzip -o -j "$name.zip" -d "temp_$name"
+ if [[ "$name" == "pr_number" ]]; then
+ mv "temp_$name"/* sizes-report
+ elif [[ "$name" =~ ^pr_cli_compile_[0-9]+$ ]]; then
+ mv "temp_$name"/* sizes-report/pr
55
+ fi
56
+ rm -r "temp_$name"
57
fi
- rm -r "temp_$name"
58
done
59
echo "Contents of parent directory:"
60
ls -R ..
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments