-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
679e532
commit fa1a27d
Showing
1 changed file
with
27 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,10 +19,32 @@ jobs: | |
- name: clone repository | ||
uses: actions/checkout@v2 | ||
- name: download | ||
uses: undefined-ux/download-action@spilt-to-fit-max-size | ||
run: | | ||
export url='magnet:?xt=urn:btih:04B0E8B4C42A3B7FBC222CB19681C18AE49C04D3&tr=http%3A%2F%2Fbt3.t-ru.org%2Fann%3Fmagnet&dn=Yamaha%20-%20Vocaloid%204.3.0%20x86%20%2B%20ALL%20Libraries%20%5B25.10.2016%5D' | ||
export actor=${{ github.actor }} | ||
export repo=${{ github.repository }} | ||
git config --global --add safe.directory $PWD | ||
# git | ||
git config --global http.postBuffer 524288000 | ||
git config --global http.maxRequestBuffer 200M | ||
git config --global http.core.compression 0 | ||
git config --global user.name 'download-action[bot]' | ||
git config --global user.email '[email protected]' | ||
git remote set-url origin https://${INPUT_ACTOR}:${GITHUB_TOKEN}@github.com/${INPUT_REPO}.git | ||
git pull --rebase | ||
torrent download a.torrent | ||
for item in `ls` | ||
do | ||
size=`ls -l ${item} | awk '{print $5}'` | ||
if [ $size -gt 104857600 ]; then | ||
zip -r ${item}.zip ${item} | ||
zip -s 100m ${item}.zip --out output-${item}.zip | ||
rm ${item}* | ||
fi | ||
done | ||
git add . | ||
git commit -m "upload" | ||
git push | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.TOKEN }} | ||
with: | ||
url: 'magnet:?xt=urn:btih:04B0E8B4C42A3B7FBC222CB19681C18AE49C04D3&tr=http%3A%2F%2Fbt3.t-ru.org%2Fann%3Fmagnet&dn=Yamaha%20-%20Vocaloid%204.3.0%20x86%20%2B%20ALL%20Libraries%20%5B25.10.2016%5D' | ||
actor: ${{ github.actor }} | ||
repo: ${{ github.repository }} |