Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
cpanato committed Feb 21, 2024
1 parent 17b796b commit 08151c2
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ runs:
shaprog() {
case ${{ runner.os }} in
Linux)
log_info "checking sha256sum"
sha256sum --ignore-missing --check $2
;;
macOS)
Expand Down Expand Up @@ -143,17 +144,19 @@ runs:
shaprog ${desired_gptscript_filename} checksums.txt
fi
ret=$?
if [[ $ret -eq 0 ]]; then
echo $ret
# if [[ $ret -eq 0 ]]; then
log_info "unpacking!"
$SUDO unzip "${desired_gptscript_filename}" -d "${{ inputs.install-dir }}"
$SUDO rm -f checksums.txt
$SUDO rm -f "${desired_gptscript_filename}"
log_info "Installation complete!"
else
log_error "Unable to validate gptscript version: '${{ inputs.gptscript-release }}'"
exit 1
fi
# else
# log_error "Unable to validate gptscript version: '${{ inputs.gptscript-release }}'"
# exit 1
# fi
- if: ${{ runner.os == 'Linux' || runner.os == 'macOS' }}
run: echo "${{ inputs.install-dir }}" >> $GITHUB_PATH
shell: bash
Expand Down

0 comments on commit 08151c2

Please sign in to comment.