Skip to content

Commit

Permalink
add exec to path (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
BartoszBlizniak authored Jun 12, 2024
1 parent e0267e7 commit fb7f780
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ runs:
shell: bash
run: |
download_url=$(curl --silent "https://api.github.com/repos/cloudsmith-io/cloudsmith-cli/releases/latest" | jq -r '.assets[0].browser_download_url')
wget -O ${{ github.action_path }}/cloudsmith $download_url
chmod +x ${{ github.action_path }}/cloudsmith
sudo wget -O /usr/local/bin/cloudsmith $download_url
sudo chmod +x /usr/local/bin/cloudsmith
- name: Setup Python
if: inputs.use-executable == 'false'
uses: actions/setup-python@v5
Expand Down
6 changes: 1 addition & 5 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,7 @@ function execute_push {
extra="${options["extra"]}"
}

local executable="cloudsmith"
if [ "$USE_EXECUTABLE" = "true" ]; then
executable="${GITHUB_ACTION_PATH}/cloudsmith"
fi
local request="$executable push ${options["action"]} ${options["format"]} $context ${options["file"]} $params $extra $tags"
local request="cloudsmith push ${options["action"]} ${options["format"]} $context ${options["file"]} $params $extra $tags"
echo $request
eval $request
}
Expand Down

0 comments on commit fb7f780

Please sign in to comment.