get-run-id.ts•524 B
import { createAction } from '@activepieces/pieces-framework';
export const getRunId = createAction({
// auth: check https://www.activepieces.com/docs/developers/piece-reference/authentication,
name: 'getRunId',
displayName: 'Get Run Info',
description: '',
props: {},
async run(context) {
const publicUrlWithoutApi = context.server.publicUrl.replace('/api', '');
return {
id: context.run.id,
url: `${publicUrlWithoutApi}projects/${context.project.id}/runs/${context.run.id}`
}
},
});