Skip to content

Commit 7525e1b

Browse files
authored
fix template for misaligned patched PyTorch dists (#66)
* fix template for misaligned patched PyTorch dists * add template as workflow trigger * update existing issue instead of creating a new one
1 parent 4f4f66a commit 7525e1b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/incorrect_pytorch_dists_issue_template.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ the wheels hosted by PyTorch. Please replace it with
88

99
```py
1010
PYTORCH_DISTRIBUTIONS = {
11-
{{ env.PYTORCH_DISTRIBUTIONS | list | join("\n") | indent(4, true) }}
11+
{%- for dist in env.PYTORCH_DISTRIBUTIONS %}
12+
"{{ dist }}",
13+
{%- endfor %}
1214
}
1315
```

.github/workflows/check-available-pytorch-dists.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
pull_request:
55
paths:
66
- ".github/workflows/check-available-pytorch-dists.yml"
7+
- ".github/incorrect_pytorch_dists_issue_template.md"
78
- "scripts/check_available_pytorch_dists.py"
89

910
schedule:
@@ -37,3 +38,4 @@ jobs:
3738
${{ toJSON(steps.pytorch-dists.outputs.pytorch-dists) }}
3839
with:
3940
filename: .github/incorrect_pytorch_dists_issue_template.md
41+
update_existing: true

0 commit comments

Comments
 (0)