CollabOps

Expressions

Overview of expression syntax available in Workflows

Expressions use the $\{\{ \}\} syntax and are replaced with actual values at runtime. You can dynamically reference secrets, environment variables, built-in contexts, step outputs, and more.

Basic Syntax

# Expressions are written inside ${{ }}
env:
  API_KEY: "${{ secrets.API_KEY }}"
  BRANCH: "${{ collabops.ref_name }}"
  VERSION: "${{ steps.version.outputs.app_version }}"

Supported Locations

LocationSupportedExample
env valueAPI_KEY: "$\{\{ secrets.KEY \}\}"
env key$\{\{ secrets.NAME \}\}: value (not allowed)
with valueref: $\{\{ collabops.ref_name \}\}
if conditionif: "collabops.ref == 'refs/heads/main'"
String in runrun: echo $\{\{ collabops.sha \}\}

Contexts Summary

ContextDescriptionDetails
secretsSecret values registered in the workspace/repositoryContexts
varsOrganization/repository/environment variablesContexts
envEnvironment variables defined in the workflowContexts
collabopsBuilt-in context (ref, sha, actor, etc.)Contexts
stepsStep output referencesStep Outputs
inputsTemplate input parameters (only available inside templates)Workspace Templates

Table of Contents