admin管理员组

文章数量:1415484

I created a custom webhook in Artifactory and define the payload as below:

{
  "event_type": "artifact_property_deleted",
  "client_payload": {
    "domain": "artifact_property",
    "event_type": "artifact_property_deleted",
    "data": {
      "repo_key": "{{ .data.repo_key }}",
      "path": "{{ .data.path }}",
      "name": "{{ .data.name }}",
      "property_key": "{{ .data.property_key }}",
      "property_value":  "{{ .data.property_value }}"
    },
    "subscription_key": "delete",
    "jpd_origin": ";,
    "source": "jfrog/jfrt@02jhydiokiusequygyts"
  }
}

I need to pass repo_key, path, name, property_key and property_value to the GitHub action, everything else is passed properly except property_value. When received by GitHub actions, it shows <no value>.

Here is how I get the value from GitHub actions:

echo "Property Value: ${{ github.event.client_payload.data.property_value }}"

Can someone guide through how to pass the value properly?

本文标签: How to get propertyvalue from a custom Artifactory webhook passed to a GitHub actionStack Overflow