Skip to content

Commit

Permalink
Fix properties URL validation to correctly extract URL from payload
Browse files Browse the repository at this point in the history
  • Loading branch information
SableRaf committed Jan 11, 2025
1 parent 84ec88c commit 862760d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/issue_to_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ jobs:
- name: Validate properties URL
id: validateUrl
run: |
properties_url="${{ fromJson(steps.parseIssue.outputs.payload).properties_url }}"
payload="${{ steps.parseIssue.outputs.payload }}"
properties_url=$(echo "$payload" | jq -r '."Properties File URL"')
if [ -z "$properties_url" ]; then
echo "Properties URL is empty. Please provide a valid URL."
exit 1
Expand Down

0 comments on commit 862760d

Please sign in to comment.