From d7872a6165cacfd344935ff10d930b0c67ec14b2 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Fri, 6 Dec 2019 13:38:52 +0100 Subject: [PATCH] Change `dist` param to `packages-dir` --- README.md | 2 +- action.yml | 4 ++-- twine-upload.sh | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index d7942b2..ab84b8a 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,7 @@ would now look like: with: user: __token__ password: ${{ secrets.test_pypi_password }} - dist: custom-dir/ + packages-dir: custom-dir/ ``` ## License diff --git a/action.yml b/action.yml index 0ae4477..7caeb32 100644 --- a/action.yml +++ b/action.yml @@ -12,7 +12,7 @@ inputs: repository_url: description: The repository URL to use required: false - dist: + packages-dir: description: The target directory for distribution required: false default: dist @@ -26,4 +26,4 @@ runs: - ${{ inputs.user }} - ${{ inputs.password }} - ${{ inputs.repository_url }} - - ${{ inputs.dist }} + - ${{ inputs.packages-dir }} diff --git a/twine-upload.sh b/twine-upload.sh index 71fdeb4..5c3ca96 100755 --- a/twine-upload.sh +++ b/twine-upload.sh @@ -17,14 +17,14 @@ then fi if [[ - ! -d ${INPUT_DIST%%/}/ || - "`ls -l ${INPUT_DIST%%/}/*.tar.gz ${INPUT_DIST%%/}/*.whl`" == "total 0" + ! -d ${INPUT_PACKAGES_DIR%%/}/ || + "`ls -l ${INPUT_PACKAGES_DIR%%/}/*.tar.gz ${INPUT_PACKAGES_DIR%%/}/*.whl`" == "total 0" ]] then >&2 echo \ [WARNING]: \ It looks like there are no Python distribution packages to \ - publish in the directory '"${INPUT_DIST%%/}/"'. Please verify that they \ + publish in the directory '"${INPUT_PACKAGES_DIR%%/}/"'. Please verify that they \ are in place should you face this problem. fi @@ -32,4 +32,4 @@ fi TWINE_USERNAME="$INPUT_USER" \ TWINE_PASSWORD="$INPUT_PASSWORD" \ TWINE_REPOSITORY_URL="$INPUT_REPOSITORY_URL" \ - exec twine upload ${INPUT_DIST%%/}/* + exec twine upload ${INPUT_PACKAGES_DIR%%/}/*