Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve URLAction templating #1336

Merged
merged 7 commits into from
Jul 31, 2024

Conversation

sbliven
Copy link
Contributor

@sbliven sbliven commented Jul 25, 2024

Allow templates in URLAction body and headers.

Also adds a few useful handlebar templates, particularly job_v3 which is a compatibility splint to massage v4 jobs into the old v3 schema when needed.

sbliven added 2 commits July 25, 2024 10:40
The jobs configured with a `url` action can now take templates for the
`url`, `body` and `headers` fields in the job configuration.
- Use `{{{urlencode var}}}` for URL components
- `base64enc` can be useful for passing data to services
- `job_v3` converts the current v4 job schema to a backwards-compatible
  form. For instance, use `body: "{{{jsonify (job_v3 this)}}}"` to pass
  a more backwards-compatible json body.
@sbliven sbliven changed the base branch from master to release-jobs July 25, 2024 08:45
@despadam despadam self-requested a review July 31, 2024 13:31
@despadam despadam merged commit e328413 into SciCatProject:release-jobs Jul 31, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants