Skip to content

Commit

Permalink
GHI #20 Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
doodspav committed Dec 19, 2023
1 parent d731715 commit 119ee21
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/reusable-test-warning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,20 @@ jobs:
shell: bash
run: |
# checks input is not empty
check_input() {
input_name="${1}"
input_value="${2}"
if [[ -z "${input_value}" ]]; then
echo "Error: required input '${input_name}' is empty or was not specified."
exit 1
else
echo "${input_name}: ${input_value}"
fi
}
check_input() {
input_name="${1}"
input_value="${2}"
if [[ -z "${input_value}" ]]; then
echo "Error: required input '${input_name}' is empty or was not specified."
exit 1
else
echo "${input_name}: ${input_value}"
fi
}
# apply function to all inputs
check_input "preset" "${{ inputs.preset }}"
check_input "architecture" "${{ inputs.architecture }}"
check_input "triple" "${{ inputs.triple }}"
check_input "cmake_build_shared" "${{ inputs.cmake_build_shared }}"
check_input "patomic_path" "${{ inputs.patomic_path }}"
# apply function to all inputs
check_input "preset" "${{ inputs.preset }}"
check_input "architecture" "${{ inputs.architecture }}"
check_input "triple" "${{ inputs.triple }}"
check_input "cmake_build_shared" "${{ inputs.cmake_build_shared }}"
check_input "patomic_path" "${{ inputs.patomic_path }}"

0 comments on commit 119ee21

Please sign in to comment.