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
|
- name: Fetch release from Gitea
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
export VERBOSE="true"
|
|
||||||
"${{ github.action_path }}/scripts/fetch-gitea-release.sh"
|
"${{ github.action_path }}/scripts/fetch-gitea-release.sh"
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ inputs.gitea_token }}
|
GITEA_TOKEN: ${{ inputs.gitea_token }}
|
||||||
@@ -53,7 +52,6 @@ runs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
TAG_NAME=${{ inputs.tag_name }}
|
TAG_NAME=${{ inputs.tag_name }}
|
||||||
export VERBOSE="true"
|
|
||||||
export TAG="$TAG_NAME"
|
export TAG="$TAG_NAME"
|
||||||
export WORKDIR="$GT_RSA_RELEASE_DIR"
|
export WORKDIR="$GT_RSA_RELEASE_DIR"
|
||||||
export GITHUB_OWNER="${{ inputs.github_owner }}"
|
export GITHUB_OWNER="${{ inputs.github_owner }}"
|
||||||
|
@@ -15,7 +15,7 @@ curl_exec() {
|
|||||||
if [[ "$VERBOSE" == "true" ]]; then
|
if [[ "$VERBOSE" == "true" ]]; then
|
||||||
curl -v "$@"
|
curl -v "$@"
|
||||||
else
|
else
|
||||||
curl -s "$@" > /dev/null
|
curl -s "$@"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -16,7 +16,7 @@ curl_exec() {
|
|||||||
if [[ "$VERBOSE" == "true" ]]; then
|
if [[ "$VERBOSE" == "true" ]]; then
|
||||||
curl -v "$@"
|
curl -v "$@"
|
||||||
else
|
else
|
||||||
curl -s "$@" > /dev/null
|
curl -s "$@"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user