mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
more debug output for e2e notify (#2035)
This commit is contained in:
parent
0c53b535ec
commit
4434abbde2
9
.github/actions/notify_failure/action.yml
vendored
9
.github/actions/notify_failure/action.yml
vendored
@ -90,9 +90,15 @@ runs:
|
|||||||
fi
|
fi
|
||||||
text_value="<at>{{ steps.pick-assignee.outputs.assignee }}</at>"
|
text_value="<at>{{ steps.pick-assignee.outputs.assignee }}</at>"
|
||||||
entities=$(jq -c '.attachments[0].content.msteams.entities[]' teams_payload.json)
|
entities=$(jq -c '.attachments[0].content.msteams.entities[]' teams_payload.json)
|
||||||
|
echo ENTITIES $entities
|
||||||
# need to filter entities to only have entry of mentioned person
|
# need to filter entities to only have entry of mentioned person
|
||||||
filtered_entity=$(echo $entities | jq -r --arg text_value "$text_value" 'select(.text == $text_value)')
|
filtered_entity=$(echo $entities | jq -r --arg text_value "$text_value" 'select(.text == $text_value)')
|
||||||
yq -iP '.attachments[0].content.msteams.entities = [ '"$filtered_entity"' ]' teams_payload.json
|
echo FILTER $filtered_entity
|
||||||
|
echo BEFORE_INSERT
|
||||||
|
jq '.attachments[0].content.msteams.entities' teams_payload.json
|
||||||
|
yq -iP '.attachments[0].content.msteams.entities = [ '"$(echo $entities | jq -r --arg text_value "$text_value" 'select(.text == $text_value)')"' ]' teams_payload.jsonteams_payload.json
|
||||||
|
jq '.attachments[0].content.msteams.entities' teams_payload.json
|
||||||
|
echo AFTER_INSERT
|
||||||
|
|
||||||
|
|
||||||
yq -iP '.attachments[0].content.body[0].columns[1].items[2].facts += [ { "title": "Assignee", "value": "<at>${{ steps.pick-assignee.outputs.assignee }}</at>" } ]' teams_payload.json
|
yq -iP '.attachments[0].content.body[0].columns[1].items[2].facts += [ { "title": "Assignee", "value": "<at>${{ steps.pick-assignee.outputs.assignee }}</at>" } ]' teams_payload.json
|
||||||
@ -100,7 +106,6 @@ runs:
|
|||||||
yq -iP '.attachments[0].content.actions[1].url = "${{ steps.create-project-card.outputs.issueURL }}"' teams_payload.json
|
yq -iP '.attachments[0].content.actions[1].url = "${{ steps.create-project-card.outputs.issueURL }}"' teams_payload.json
|
||||||
yq -iP ".attachments[0].content.actions[2].url = \"${{ steps.create-project-card.outputs.opensearchURL }}\"" teams_payload.json
|
yq -iP ".attachments[0].content.actions[2].url = \"${{ steps.create-project-card.outputs.opensearchURL }}\"" teams_payload.json
|
||||||
cat teams_payload.json
|
cat teams_payload.json
|
||||||
|
|
||||||
curl \
|
curl \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d @teams_payload.json \
|
-d @teams_payload.json \
|
||||||
|
Loading…
Reference in New Issue
Block a user