Browse Source

Update .github/workflows/update-studio-docs.yml

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
pull/24804/head
selman koc 2 days ago
committed by GitHub
parent
commit
f7fa127c1e
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 31
      .github/workflows/update-studio-docs.yml

31
.github/workflows/update-studio-docs.yml

@ -18,31 +18,16 @@ jobs:
# -----------------------------
- name: Validate payload
run: |
if [ -z "${{ github.event.client_payload.version }}" ]; then
echo "Missing payload field: version"
exit 1
fi
if [ -z "${{ github.event.client_payload.name }}" ]; then
echo "Missing payload field: name"
exit 1
fi
if [ -z "${{ github.event.client_payload.notes }}" ]; then
echo "Missing payload field: notes"
exit 1
fi
if [ -z "${{ github.event.client_payload.url }}" ]; then
echo "Missing payload field: url"
exit 1
fi
required_keys=(version name notes url target_branch)
if [ -z "${{ github.event.client_payload.target_branch }}" ]; then
echo "Missing payload field: target_branch"
exit 1
fi
for key in "${required_keys[@]}"; do
value="$(jq -r --arg key "$key" '.client_payload[$key] // ""' "$GITHUB_EVENT_PATH")"
if [ -z "$value" ] || [ "$value" = "null" ]; then
echo "Missing payload field: $key"
exit 1
fi
done
# -----------------------------
# Checkout dev
# -----------------------------

Loading…
Cancel
Save