Create Working Directory

The “Create Working Directory” action establishes a dedicated filesystem state that preserves files and changes across different steps in the workflow, allowing them to persist and ensuring continuity between steps.

ParameterDescription
NameThe name given to the working directory

Set File Variable

Set an identifier for a file on the file system so it can be used as input in subsequent Steps.

The Working Directory created in step 1 needs to be entered into the input fields for both the ‘Run Bash’ action in step 2 and the ‘Set File Variable’ action in step 3. This ensures that both actions operate within the same directory, maintaining consistency across the workflow.

Step 1: Create Working Directory

  1. Add a “Create Working Directory” action to the workflow.
  2. Set the Name parameter to "WorkingDirectory".

Step 2: Run Bash Script

  1. Add a “Run Bash Script” action.
  2. Create a bash script For example: echo $(getent passwd) > users
    • This command retrieves a list of system users and writes it to a file named users.
  3. Under the Advanced section, set Working Directory to {{ WorkingDirectory.Identifier }} using the variable picker to ensure the script executes within the created directory.

Step 3: Set File Variable

  1. Add a “Set File Variable” action.
  2. Configure the following parameters:
    • File Identifier: "MyFile"
    • Path: "users"
  3. Under the Advanced section, set Working Directory to {{ WorkingDirectory.Identifier }} using the variable picker .
  4. Execute the step. The output confirms the file’s location and size:
    {
      "path": "/home/blink_15699/MyFile",
      "size": 1703
    }
    

Download File From URL

Download a file from a URL and set an identifier for it, so it can be used as input in subsequent steps.

ParameterDescription
URLAddress of the resource.
File identifierThe identifier of the file. This can be used as input for subsequent Steps.
Show outputDisplay the content downloaded from the given URL.
HeadersRequest Headers to be added to the request in the format Name: Value. For example: Content-Type: application/json.
CookiesWeb cookies to include in the request in the format Name: Value. For example: Session: gr32tsd266yfg3u3t132kyl.
Disable SSL EnforcementEnable this option to skip SSL verification of the server’s certificate chain and host name. This may increase security vulnerabilities, but can be useful for testing or when custom verification is employed.

Create Archive

Create an archive from a file or folder path and set an identifier for it so it can be used as input in subsequent steps.

ParameterDescription
File identifierThe identifier of the file. This can be used as input for subsequent Steps.
Content PathThe file or folder path to create the archive from.
DestinationThe path in which the archive will be created. If no destination is provided, the archive will be created in the user’s home path.
Advanced- Working DirectoryWhen a working directory is selected, the filesystem state is preserved across steps that use this directory. Files and changes in the chosen directory persist across steps, ensuring continuity. For more information, refer to the Create Working Directory action documentation for guidance on setting up and selecting working directories.

Capture Website Screenshot

Get a webpage screenshot as a .png file using a provided URL.

ParameterDescription
File IdentifierThe identifier of the file. This will be used as an input for subsequent steps.
URLThe URL to take the screenshot from (e.g. https://google.com).

Convert HTML To PDF

Convert HTML to a .pdf file.

ParameterDescription
File IdentifierThe identifier of the file. This will be used as an input for subsequent steps.
HTML ContentThe HTML code to render.

Convert HTML To PNG

Convert HTML to a .png file.

ParameterDescription
File IdentifierThe identifier of the file. This will be used as input for subsequent steps.
HTML ContentThe HTML code to render.