refactor(scripts): remove redundant verbose flag handling
- Eliminate unused VERBOSE flag exports in action workflows - Adjust curl commands to consistently output responses instead of suppressing - Simplify script logic by removing unnecessary verbosity checks
This commit is contained in:
@@ -40,7 +40,6 @@ runs:
|
||||
- name: Fetch release from Gitea
|
||||
shell: bash
|
||||
run: |
|
||||
export VERBOSE="true"
|
||||
"${{ github.action_path }}/scripts/fetch-gitea-release.sh"
|
||||
env:
|
||||
GITEA_TOKEN: ${{ inputs.gitea_token }}
|
||||
@@ -53,7 +52,6 @@ runs:
|
||||
shell: bash
|
||||
run: |
|
||||
TAG_NAME=${{ inputs.tag_name }}
|
||||
export VERBOSE="true"
|
||||
export TAG="$TAG_NAME"
|
||||
export WORKDIR="$GT_RSA_RELEASE_DIR"
|
||||
export GITHUB_OWNER="${{ inputs.github_owner }}"
|
||||
|
@@ -15,7 +15,7 @@ curl_exec() {
|
||||
if [[ "$VERBOSE" == "true" ]]; then
|
||||
curl -v "$@"
|
||||
else
|
||||
curl -s "$@" > /dev/null
|
||||
curl -s "$@"
|
||||
fi
|
||||
}
|
||||
|
||||
|
@@ -16,7 +16,7 @@ curl_exec() {
|
||||
if [[ "$VERBOSE" == "true" ]]; then
|
||||
curl -v "$@"
|
||||
else
|
||||
curl -s "$@" > /dev/null
|
||||
curl -s "$@"
|
||||
fi
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user