Skip to content

Commit

Permalink
feat: allow specifying a working directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Reynolds committed Nov 4, 2019
1 parent aa028c1 commit ee1798d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM alpine:3.10

LABEL version="0.0.1"
LABEL version="1.1.0"
LABEL repository="https://github.com/advancedcsg-open/action-jfrog-cli"
LABEL homepage="https://github.com/advancedcsg-open/action-jfrog-cli"
LABEL maintainer="Advanced Toolchain"
Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ inputs:
access token:
description: 'Artifactory access token. Must be supplied when credentials type is accesstoken'
required: false
working directory:
description: 'Specify a working directory for the command to run in.'
required: false
default: .
branding:
icon: 'package'
color: 'green'
Expand Down
6 changes: 6 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ then
fi
sh -c "jfrog rt use action-server"

# Set working directory if specified
if [ $INPUT_WORKING_DIRECTORY != '.' ];
then
cd $INPUT_WORKING_DIRECTORY
fi

# Log command for info
echo "[Info] jfrog rt $*"

Expand Down

0 comments on commit ee1798d

Please sign in to comment.