mirror of
https://github.com/homarr-labs/dashboard-icons.git
synced 2026-01-12 16:25:38 +08:00
Update .gitignore to exclude GitHub Actions output artifacts and modify add-icon workflow to use temporary output files
This commit is contained in:
7
.github/workflows/add-icon.yml
vendored
7
.github/workflows/add-icon.yml
vendored
@@ -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
5
.gitignore
vendored
@@ -35,4 +35,7 @@ Temporary Items
|
||||
__pycache__/
|
||||
|
||||
node_modules/
|
||||
.cursor/commands
|
||||
.cursor/commands
|
||||
|
||||
# GitHub Actions output artifacts (should never be committed)
|
||||
import_output_*.txt
|
||||
Reference in New Issue
Block a user