From a8ddac2458691d7779173b9e96b8c19ff69caf98 Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Fri, 6 Dec 2019 23:09:41 +0000 Subject: [PATCH] Fix typo in inputs d7872a6165 changed the name of an input from `dist` to `packages-dir`, but unfortunately it looks like GitHub actions expect underscores rather than dashes, so deploys are currently broken with the following errors: ``` Run pypa/gh-action-pypi-publish@master with: user: __token__ password: *** packages-dir: dist env: pythonLocation: /opt/hostedtoolcache/Python/3.8.0/x64 /usr/bin/docker run --name [...] -e INPUT_PACKAGES-DIR [...] /app/twine-upload.sh: line 22: INPUT_PACKAGES_DIR: unbound variable This patch replaces the dash with an underscore. Resolves #20 --- README.md | 2 +- action.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e526126..4701f78 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,7 @@ would now look like: with: user: __token__ password: ${{ secrets.pypi_password }} - packages-dir: custom-dir/ + packages_dir: custom-dir/ ``` ## License diff --git a/action.yml b/action.yml index 7caeb32..478f53f 100644 --- a/action.yml +++ b/action.yml @@ -12,7 +12,7 @@ inputs: repository_url: description: The repository URL to use required: false - packages-dir: + 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.packages-dir }} + - ${{ inputs.packages_dir }}