releases_upload_github aktualisiert
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
GITHUB_USER=""
|
||||
GITHUB_SECRET=""
|
||||
export GITHUB_TOKEN=$GITHUB_SECRET
|
||||
BASE_PATH="~/repo"
|
||||
BASE_PATH=/debian/Desktop/unraid-nvidia-driver
|
||||
|
||||
|
||||
FILENAME="sound"
|
||||
FILENAME="nvidia|nvos"
|
||||
export GITHUB_RELEASE_APP_NAME="Nvidia Driver"
|
||||
export GITHUB_USERNAME="ich777"
|
||||
export GITHUB_USERNAME="unraid"
|
||||
export GITHUB_REPO_NAME="unraid-nvidia-driver"
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ chmod +x /tmp/GitHubRelease/github-release
|
||||
while read -r line
|
||||
do
|
||||
cd ${BASE_PATH}/$line
|
||||
if [ ! -z "$(ls -1 | grep "${FILENAME}")" ]; then
|
||||
if [ ! -z "$(ls -1 | grep -E "${FILENAME}")" ]; then
|
||||
/tmp/GitHubRelease/github-release release \
|
||||
--user $GITHUB_USERNAME \
|
||||
--repo $GITHUB_REPO_NAME \
|
||||
@@ -37,15 +37,16 @@ do
|
||||
--name "$line" \
|
||||
--description "$GITHUB_RELEASE_APP_NAME plugin package(s) for Unraid Kernel v${line%%-*} by ich777"
|
||||
|
||||
ls -1 | grep "${FILENAME}" | xargs -n1 -P0 -I{} -- \
|
||||
sleep 5s
|
||||
|
||||
ls -1 | grep -E "${FILENAME}" | xargs -n1 -P0 -I{} -- \
|
||||
/tmp/GitHubRelease/github-release upload \
|
||||
--user $GITHUB_USERNAME \
|
||||
--repo $GITHUB_REPO_NAME \
|
||||
--tag $line \
|
||||
--name {} \
|
||||
--file {}
|
||||
sleep 15m
|
||||
sleep 5s
|
||||
fi
|
||||
done <<< "${DIRECTORIES}"
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user