mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-12 22:28:32 +09:00
[Fix] (CI): remove intermediate trace artifacts
This commit is contained in:
@@ -489,8 +489,14 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
run: |
|
run: |
|
||||||
|
mapfile -t artifacts < <(
|
||||||
gh api --paginate "repos/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}/artifacts?per_page=100" \
|
gh api --paginate "repos/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}/artifacts?per_page=100" \
|
||||||
--jq '.artifacts[] | select(.name | startswith("MobileGL-trace-fixture-") or startswith("MobileGL-android-retrace-result-")) | .id' |
|
--jq '.artifacts[] | select(.name | startswith("MobileGL-trace-fixture-") or startswith("MobileGL-android-retrace-result-") or startswith("trace-fixture-") or startswith("retrace-result-")) | [.id, .name] | @tsv'
|
||||||
while IFS= read -r artifact_id; do
|
)
|
||||||
|
|
||||||
|
echo "Found ${#artifacts[@]} intermediate Android artifact(s)."
|
||||||
|
for artifact in "${artifacts[@]}"; do
|
||||||
|
IFS=$'\t' read -r artifact_id artifact_name <<<"${artifact}"
|
||||||
|
echo "Deleting ${artifact_name} (${artifact_id})"
|
||||||
gh api --method DELETE "repos/${GITHUB_REPOSITORY}/actions/artifacts/${artifact_id}"
|
gh api --method DELETE "repos/${GITHUB_REPOSITORY}/actions/artifacts/${artifact_id}"
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -519,8 +519,14 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
run: |
|
run: |
|
||||||
|
mapfile -t artifacts < <(
|
||||||
gh api --paginate "repos/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}/artifacts?per_page=100" \
|
gh api --paginate "repos/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}/artifacts?per_page=100" \
|
||||||
--jq '.artifacts[] | select(.name | startswith("retrace-result-")) | .id' |
|
--jq '.artifacts[] | select(.name | startswith("trace-fixture-") or startswith("retrace-result-")) | [.id, .name] | @tsv'
|
||||||
while IFS= read -r artifact_id; do
|
)
|
||||||
|
|
||||||
|
echo "Found ${#artifacts[@]} intermediate Linux artifact(s)."
|
||||||
|
for artifact in "${artifacts[@]}"; do
|
||||||
|
IFS=$'\t' read -r artifact_id artifact_name <<<"${artifact}"
|
||||||
|
echo "Deleting ${artifact_name} (${artifact_id})"
|
||||||
gh api --method DELETE "repos/${GITHUB_REPOSITORY}/actions/artifacts/${artifact_id}"
|
gh api --method DELETE "repos/${GITHUB_REPOSITORY}/actions/artifacts/${artifact_id}"
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user