mirror of
https://github.com/Melorise/nixpkgs.git
synced 2026-11-07 14:39:33 +00:00
Remove cleanup commands in mirror-nixpkgs workflow
Removed cleanup commands for temporary files after pushing branches.
This commit is contained in:
@@ -23,7 +23,6 @@ jobs:
|
|||||||
for branch in nixos-26.05 nixos-unstable; do
|
for branch in nixos-26.05 nixos-unstable; do
|
||||||
archive="$(mktemp)"
|
archive="$(mktemp)"
|
||||||
checkout="$(mktemp -d)"
|
checkout="$(mktemp -d)"
|
||||||
trap 'rm -f "$archive"; rm -rf "$checkout"' EXIT
|
|
||||||
|
|
||||||
curl --fail --location --retry 3 \
|
curl --fail --location --retry 3 \
|
||||||
"https://codeload.github.com/NixOS/nixpkgs/tar.gz/refs/heads/$branch" \
|
"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"
|
"https://x-access-token:${NIX_BRANCH_TOKEN}@github.com/${TARGET_REPOSITORY}.git"
|
||||||
git -C "$checkout" push --force target "HEAD:refs/heads/$branch"
|
git -C "$checkout" push --force target "HEAD:refs/heads/$branch"
|
||||||
|
|
||||||
rm -f "$archive"
|
|
||||||
rm -rf "$checkout"
|
|
||||||
trap - EXIT
|
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user