with Bash and Formatting?
Run any Bash in a Pipedream step within your workflow. Refer to the Pipedream Bash docs to learn more.
Get the duration between two dates in days, hours, minutes, and seconds along with checking if they are the same.
# $PIPEDREAM_STEPS file contains data from previous steps
cat $PIPEDREAM_STEPS | jq .trigger.context.id
# Write data to $PIPEDREAM_EXPORTS to return it from the step
# Exports must be written as key=value
echo foo=bar >> $PIPEDREAM_EXPORTS
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})