Update .gitignore to exclude GitHub Actions output artifacts and modify add-icon workflow to use temporary output files

This commit is contained in:
Thomas Camlong
2026-01-08 12:49:10 +01:00
parent 4b4a77d37a
commit 077955a6ee
2 changed files with 9 additions and 3 deletions

View File

@@ -70,17 +70,20 @@ jobs:
if [ "$DRY_RUN" = "true" ]; then
ARGS+=("--dry-run")
fi
ARGS+=("--gha-output" "import_output_$submission_id.txt")
output_file="$(mktemp)"
ARGS+=("--gha-output" "$output_file")
bun run scripts/import-icon.ts "${ARGS[@]}"
if [ "$DRY_RUN" != "true" ] && ! git diff --quiet; then
source "import_output_$submission_id.txt" 2>/dev/null || true
source "$output_file" 2>/dev/null || true
name="${submission_name:-$submission_id}"
approver_name="${approver:-unknown}"
git add .
git commit -m "chore: add icon \"${name}\" (submission ${submission_id}, approved by ${approver_name})"
fi
rm -f "$output_file" || true
echo "::endgroup::"
done

5
.gitignore vendored
View File

@@ -35,4 +35,7 @@ Temporary Items
__pycache__/
node_modules/
.cursor/commands
.cursor/commands
# GitHub Actions output artifacts (should never be committed)
import_output_*.txt