Michael Yick 41ae97c941
Some checks failed
test function / build (push) Failing after 22s
use Infinity instead of just a large number for maxBodyLength
2025-10-16 09:30:02 -05:00
2022-01-22 00:19:31 +08:00
2022-08-11 20:38:17 +02:00
2022-01-22 11:39:26 +08:00
2022-01-22 00:19:31 +08:00
2022-01-22 00:19:31 +08:00
2022-01-22 00:19:31 +08:00
2022-01-22 00:19:31 +08:00
2022-01-22 00:19:31 +08:00
2022-01-22 00:19:31 +08:00
2022-01-22 01:11:30 +08:00
2022-01-26 16:32:30 +08:00
2022-08-11 20:38:17 +02:00
2022-10-17 10:28:18 +02:00
2022-01-21 16:20:26 +00:00
2022-01-22 00:19:31 +08:00

📤 :octocat:

action upload-webdav

A Github Action for uploading files to a webdav demandware server

🤸 Usage

  uses: tszalbot/action-upload-webdav@v1
  with:
    webdav_address: ${{secrets.address}}
    webdav_username: ${{secrets.username}}
    webdav_password: ${{secrets.password}}
    webdav_upload_path: "/data"
    files: "./test/**"

🤸 With client certificate

  uses: tszalbot/action-upload-webdav@v1
  with:
    webdav_address: ${{secrets.address}}
    webdav_username: ${{secrets.username}}
    webdav_password: ${{secrets.password}}
    webdav_cert: ${{secrets.cert}}
    webdav_ca: ${{secrets.ca}}
    webdav_key: ${{secrets.key}}
    webdav_upload_path: "/data"
    files: "./test/**"

⚠️ for security purpose, please use the Actions secrets, check in https://docs.github.com/en/actions/security-guides/encrypted-secrets

✍️ All Parameters

Input Description Default
webdav_address WebDAV address -
webdav_username WebDAV username -
webdav_password WebDAV password -
webdav_cert WebDAV client certificate (optional). Usually the .crt file -
webdav_ca WebDAV client certificate bundle (optional). Usually the .pem file -
webdav_key WebDAV client certificate key (optional). Usually the .key file -
webdav_upload_path The WebDAV path where you want to upload, Some server not support root path -
files Newline-delimited list of path globs for asset files to upload
🐾 You can learn more about multi-line yaml syntax here
-
fail_on_unmatched_files Fail the action when exist unmatch file pattern false

🚳 Now we just support the basic authentication and certificates

⚠️ If the upload path contains same file name, the file will be overwritten

🪴 Detail

files

Using the @action/glob to search for files matching glob patterns. You can set muliple pattern to active the search.

Pattern Details

Patterns

Glob behavior

Patterns *, ?, [...], ** (globstar) are supported.

With the following behaviors:

  • File names that begin with . may be included in the results
  • Case insensitive on Windows
  • Directory separator / and \ both supported on Windows

Tilde expansion

Supports basic tilde expansion, for current user HOME replacement only.

Example:

  • ~ may expand to /Users/johndoe
  • ~/foo may expand to /Users/johndoe/foo

Comments

Patterns that begin with # are treated as comments.

Exclude patterns

Leading ! changes the meaning of an include pattern to exclude.

Multiple leading ! flips the meaning.

Escaping

Wrapping special characters in [] can be used to escape literal glob characters in a file name. For example the literal file name hello[a-z] can be escaped as hello[[]a-z].

On Linux/macOS \ is also treated as an escape character.

📖 Thanks

Description
No description provided
Readme MIT 1.8 MiB
Languages
TypeScript 96.9%
JavaScript 2.4%
Shell 0.7%