Skip to main content

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.
Create Archive

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.
Create Working Directory

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.
Download File

Get File Content

The Get File Content utility action allows you to print the content of a file that exists in a 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:
Set File Var