mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-08 03:43:25 +00:00
packages.yml: append random suffix to archive
To not override previous archives that might not have been parsed yet.
This commit is contained in:
5
.github/workflows/packages.yml
vendored
5
.github/workflows/packages.yml
vendored
@@ -153,7 +153,8 @@ jobs:
|
||||
# Zip the deb archives to only do one transfer to the repo.
|
||||
# This makes it easier to parse it, we can run one update job
|
||||
# instead of one for each arch on the server.
|
||||
zip termux-packages.zip debs-aarch64.tar debs-arm.tar debs-i686.tar debs-x86_64.tar
|
||||
archive="termux-packages-$(tr -dc A-Za-z0-9 </dev/urandom | head -c 6).zip"
|
||||
zip $archive debs-aarch64.tar debs-arm.tar debs-i686.tar debs-x86_64.tar
|
||||
sftp -P ${{ secrets.PORT }} ${{ secrets.USER }}@grimler.se <<EOF
|
||||
put termux-packages.zip /debs/
|
||||
put $archive /debs/
|
||||
EOF
|
||||
|
||||
Reference in New Issue
Block a user