Skip to content

Commit

Permalink
Refactor properties URL extraction to use fromJson again
Browse files Browse the repository at this point in the history
  • Loading branch information
SableRaf committed Jan 11, 2025
1 parent c1ae27d commit 513bb71
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/issue_to_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,8 @@ jobs:
- name: Validate properties URL
id: validateUrl
run: |
payload="${{ steps.parseIssue.outputs.payload }}"
properties_url=$(echo "$payload" | jq -r '."Properties File URL"')
if [ -z "$properties_url" ]; then
properties_url="${{ fromJson(steps.parseIssue.outputs.payload)['Properties File URL'] }}"
if [ -z "$properties_url"; then
echo "Properties URL is empty. Please provide a valid URL."
exit 1
fi
Expand All @@ -71,7 +70,7 @@ jobs:
- name: Read and validate properties txt file
id: parseProps
run: |
properties_url=$(echo "${{ steps.parseIssue.outputs.payload }}" | jq -r '."Properties File URL"')
properties_url="${{ fromJson(steps.parseIssue.outputs.payload)['Properties File URL'] }}"
python -u scripts/parse_and_validate_properties_txt.py \
${{ steps.determineCategory.outputs.category }} \
"$properties_url"
Expand Down

0 comments on commit 513bb71

Please sign in to comment.