Skip to content

Commit

Permalink
fixed mapping to be alist
Browse files Browse the repository at this point in the history
  • Loading branch information
yairsimantov20 committed Nov 17, 2023
1 parent 80195bd commit 0b30565
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ Create the following blueprint, action and mapping to trigger a Terraform Cloud
<summary>Mapping - (Should be saved as `invocations.json`)</summary>

```json
{
[{
"enabled": ".action == \"trigger_tf_run\"",
"headers": {
"Authorization": "\"Bearer \" + env.TF_TOKEN",
Expand All @@ -216,7 +216,7 @@ Create the following blueprint, action and mapping to trigger a Terraform Cloud
}
}
}
}
}]
```
</details>

Expand Down Expand Up @@ -306,7 +306,7 @@ Create the following blueprint, action and mapping to trigger a CircleCI pipelin
<summary>Mapping - (Should be saved as `invocations.json`)</summary>

```json
{
[{
"enabled": ".action == \"trigger_circle_ci_pipeline\"",
"url": "(env.CIRCLE_CI_URL // \"https://circleci.com\") as $baseUrl | .payload.entity.properties.project_slug | @uri as $path | $baseUrl + \"/api/v2/project/\" + $path + \"/pipeline\"",
"headers": {
Expand All @@ -316,7 +316,7 @@ Create the following blueprint, action and mapping to trigger a CircleCI pipelin
"branch": ".payload.properties.branch // \"main\"",
"parameters": ".payload.action.invocationMethod as $invocationMethod | .payload.properties | to_entries | map({(.key): (.value | tostring)}) | add | if $invocationMethod.omitUserInputs then {} else . end"
}
}
}]
```
</details>

Expand Down

0 comments on commit 0b30565

Please sign in to comment.