Skip to content

Commit

Permalink
Grouped output
Browse files Browse the repository at this point in the history
  • Loading branch information
mbround18 committed Jul 7, 2022
1 parent f0c30b9 commit 536ce8a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,48 +30,60 @@ runs:
- name: Setup Bins
shell: sh
run: |
echo "::group::Setup Bin Folder"
. "${GITHUB_ACTION_PATH}/utils.sh"
setup
echo "${BIN_PATH}" >> $GITHUB_PATH
echo "::endgroup::"
- name: Setup JQ
shell: sh
if: inputs.autoVersion == 'latest'
run: |
echo "::group::Setup jq"
. "${GITHUB_ACTION_PATH}/utils.sh"
downloadBinary "stedolan" "jq" "jq" "jq-${{inputs.jqVersion}}" "jq-linux64"
echo "::endgroup::"
- name: Setup Auto
shell: sh
run: |
echo "::group::Setup auto"
. "${GITHUB_ACTION_PATH}/utils.sh"
downloadAsset "intuit" "auto" "auto" "${{ inputs.autoVersion }}" "auto-linux.gz"
echo "::endgroup::"
- name: Run Auto
id: auto
shell: bash
env:
GH_TOKEN: "${{ inputs.token }}"
run: |
echo "::group::Run Auto"
set -o pipefail
OUTPUT_FILE="/tmp/auto.out"
auto ${{ inputs.command }} 2>&1 | tee "${OUTPUT_FILE}"
exit $?
echo "::endgroup::"
- name: Check & Setup PowerShell
shell: sh
run: |
if ! [ -x "$(command -v pwsh)" ]; then
echo "::group::Setup PowerShell"
. "${GITHUB_ACTION_PATH}/utils.sh"
downloadAsset "PowerShell" "PowerShell" "pwsh" "${{ inputs.autoVersion }}" "powershell-{VERSION_NO_PREFIX}-linux-x64.tar.gz"
echo "::endgroup::"
fi
- name: Parse Version
shell: pwsh
id: version
run: |
Write-Output "::group::Parse Version"
$File = "/tmp/auto.out"
$Version = ""
Expand Down Expand Up @@ -109,3 +121,4 @@ runs:
}
Write-Output "Version=$Version"
Write-Output "::set-output name=version::$Version"
Write-Output "::endgroup::"

0 comments on commit 536ce8a

Please sign in to comment.