Skip to content

Commit b50f449

Browse files
committed
Add URL validation step to issue-to-PR workflow
1 parent 74be226 commit b50f449

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/issue_to_pr.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ jobs:
4343
|| contains(github.event.issue.labels.*.name, 'tool') && 'tool'
4444
|| contains(github.event.issue.labels.*.name, 'library') && 'library'}}"
4545

46+
- name: Validate properties URL
47+
id: validateUrl
48+
run: |
49+
if ! curl --output /dev/null --silent --head --fail "${{ fromJson(steps.parseIssue.outputs.payload).properties_url }}"; then
50+
echo "Url not valid: ${{ fromJson(steps.parseIssue.outputs.payload).properties_url }}"
51+
exit 1
52+
fi
53+
4654
- name: Read and validate properties txt file
4755
id: parseProps
4856
run: >

0 commit comments

Comments
 (0)