enhance: move variables outside loop (#1002)
This commit is contained in:
parent
351460f992
commit
1cbc6e55bf
1 changed files with 4 additions and 4 deletions
|
@ -18,6 +18,10 @@ cd artifacts
|
|||
|
||||
set +e
|
||||
|
||||
OWNER="${GITHUB_REPOSITORY_OWNER:-"VSCodium"}"
|
||||
REPO_NAME="${GITHUB_REPOSITORY:(${#OWNER}+1)}"
|
||||
REPOSITORY="${REPO_NAME:-"vscodium"}"
|
||||
|
||||
for FILE in *
|
||||
do
|
||||
if [[ -f "${FILE}" ]] && [[ "${FILE}" != *.sha1 ]] && [[ "${FILE}" != *.sha256 ]]; then
|
||||
|
@ -27,10 +31,6 @@ do
|
|||
EXIT_STATUS=$?
|
||||
echo "exit: $EXIT_STATUS"
|
||||
|
||||
OWNER="${GITHUB_REPOSITORY_OWNER:-"VSCodium"}"
|
||||
REPO_NAME=${GITHUB_REPOSITORY:(${#OWNER}+1)}
|
||||
REPOSITORY="${REPO_NAME:-"vscodium"}"
|
||||
|
||||
if (( $EXIT_STATUS )); then
|
||||
for (( i=0; i<10; i++ ))
|
||||
do
|
||||
|
|
Loading…
Add table
Reference in a new issue