databricks/upload-dbfs-temp
Upload a file on the local filesystem to a temporary DBFS location, returning the DBFS path of the uploaded file.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| local-path | Path of the file to upload | yes | — |
| dbfs-temp-dir | Optional base DBFS directory under which to create a temporary directory containing the file. If specified, must start with 'dbfs:/'. The file will be uploaded to a random subdirectory under the specified directory, i.e. given a dbfs-temp-dir of dbfs:/actions-tmp and a local-path of libraries/my-library.whl, the file will be uploaded to dbfs:/actions-tmp/<uuid>/my-library.whl. Use the dbfs-file-path output to access the final uploaded path of the file. | no | dbfs:/tmp/databricks-github-actions |
| databricks-host | Hostname of the Databricks workspace to which to upload the file. If unspecified, the hostname will be inferred from the DATABRICKS_HOST environment variable. Either this parameter or the DATABRICKS_HOST environment variable must be set. | no | — |
| databricks-token | Databricks REST API token to use to upload the file. If unspecified, the token will be inferred from the DATABRICKS_TOKEN environment variable. Either this parameter or the DATABRICKS_TOKEN environment variable must be set. | no | — |
Outputs
| name | description |
|---|---|
| dbfs-file-path | The path in DBFS that the file was uploaded to, e.g. dbfs:/.../my-library.whl |