Skip to content

Commit

Permalink
fix: action description
Browse files Browse the repository at this point in the history
  • Loading branch information
ayeressian committed May 6, 2023
1 parent d09126d commit 9397ff6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The storage endpoint. Default value is storage.bunnycdn.com

### `storagePassword`

The storage passowd. It should be read and write capable.
The storage password. It should be read and write capable.

### `pullZoneId`

Expand Down
11 changes: 6 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,19 @@ inputs:
storageZoneName:
description: "The name of your storage zone where you are connecting to."
required: true
accessKey:
description: "The storage API key."
storagePassword:
description: "The storage password. It should be read and write capable."
required: true
storageEndpoint:
description: "The storage endpoint"
default: "storage.bunnycdn.com"
accessKey:
description: "The API key."
required: true
pullZoneId:
description: "Is required for purging."
pullZoneAccessKey:
description: "Is required for purging."
purge:
description: "It will purge the pull zone if true. pullZoneId and pullZoneAccessKey should be provided."
description: "It will purge the pull zone if true. pullZoneId and accessKey should be provided."
default: "false"
remove:
description: "It will remove the files from storage before uploading if 'true' provided."
Expand Down
4 changes: 3 additions & 1 deletion src/uploader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ const uploadFile = async (
storageEndpoint: string
) => {
const readStream = fs.createReadStream(entry.fullPath);
info(`Deploying ${entry.path}`);
info(
`Deploying ${entry.path} by https://${storageEndpoint}/${storageName}/${entry.path}`
);
const response = await fetch(
`https://${storageEndpoint}/${storageName}/${entry.path}`,
{
Expand Down

0 comments on commit 9397ff6

Please sign in to comment.