From 458099baf1db6bef617cd93120403b5254bee364 Mon Sep 17 00:00:00 2001 From: Melorise <0d00@0721.hk> Date: Thu, 22 Oct 2026 10:14:41 +0800 Subject: [PATCH] Remove cleanup commands in mirror-nixpkgs workflow Removed cleanup commands for temporary files after pushing branches. --- .github/workflows/mirror-nixpkgs.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/mirror-nixpkgs.yml b/.github/workflows/mirror-nixpkgs.yml index e42353a9a..2990c31e0 100644 --- a/.github/workflows/mirror-nixpkgs.yml +++ b/.github/workflows/mirror-nixpkgs.yml @@ -23,7 +23,6 @@ jobs: for branch in nixos-26.05 nixos-unstable; do archive="$(mktemp)" checkout="$(mktemp -d)" - trap 'rm -f "$archive"; rm -rf "$checkout"' EXIT curl --fail --location --retry 3 \ "https://codeload.github.com/NixOS/nixpkgs/tar.gz/refs/heads/$branch" \ @@ -39,7 +38,4 @@ jobs: "https://x-access-token:${NIX_BRANCH_TOKEN}@github.com/${TARGET_REPOSITORY}.git" git -C "$checkout" push --force target "HEAD:refs/heads/$branch" - rm -f "$archive" - rm -rf "$checkout" - trap - EXIT done