Skip to content

Commit b3700e4

Browse files
committed
chore: additional error handling
1 parent feb32b5 commit b3700e4

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
# keystore-store-password: ${{ secrets.KEYSTORE_STORE_PASSWORD }}
4444
# keystore-key-alias: 'your-key-alias'
4545
# keystore-key-password: ${{ secrets.KEYSTORE_KEY_PASSWORD }}
46-
# keystore-path: 'tools/buildtools/upload-key.keystore' # Optional: custom keystore path
46+
# keystore-path: 'tools/buildtools/upload-key.keystore' # Optional: for custom keystore locations
4747
```
4848

4949
## Inputs

action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,10 @@ runs:
205205
if: ${{ !env.ARTIFACT_URL && inputs.sign }}
206206
run: |
207207
KEYSTORE_TARGET_PATH="$ANDROID_SOURCE_DIR/$APP_NAME/${{ inputs.keystore-path }}"
208-
mkdir -p "$(dirname "$KEYSTORE_TARGET_PATH")"
208+
mkdir -p "$(dirname "$KEYSTORE_TARGET_PATH")" || {
209+
echo "Failed to create keystore directory: $(dirname "$KEYSTORE_TARGET_PATH")"
210+
exit 1
211+
}
209212
if [ -n "${{ inputs.keystore-file }}" ]; then
210213
cp "${{ inputs.keystore-file }}" "$KEYSTORE_TARGET_PATH"
211214
else

0 commit comments

Comments
 (0)