Skip to content

Commit 513bb71

Browse files
committed
Refactor properties URL extraction to use fromJson again
1 parent c1ae27d commit 513bb71

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/issue_to_pr.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,8 @@ jobs:
5757
- name: Validate properties URL
5858
id: validateUrl
5959
run: |
60-
payload="${{ steps.parseIssue.outputs.payload }}"
61-
properties_url=$(echo "$payload" | jq -r '."Properties File URL"')
62-
if [ -z "$properties_url" ]; then
60+
properties_url="${{ fromJson(steps.parseIssue.outputs.payload)['Properties File URL'] }}"
61+
if [ -z "$properties_url"; then
6362
echo "Properties URL is empty. Please provide a valid URL."
6463
exit 1
6564
fi
@@ -71,7 +70,7 @@ jobs:
7170
- name: Read and validate properties txt file
7271
id: parseProps
7372
run: |
74-
properties_url=$(echo "${{ steps.parseIssue.outputs.payload }}" | jq -r '."Properties File URL"')
73+
properties_url="${{ fromJson(steps.parseIssue.outputs.payload)['Properties File URL'] }}"
7574
python -u scripts/parse_and_validate_properties_txt.py \
7675
${{ steps.determineCategory.outputs.category }} \
7776
"$properties_url"

0 commit comments

Comments
 (0)