-
Notifications
You must be signed in to change notification settings - Fork 7
49 lines (38 loc) · 1.34 KB
/
check-pytorch-package-indices.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: check-available-pytorch-dists
on:
pull_request:
paths:
- .github/issue-templates/packages-out-of-sync.md
- .github/workflows/check-available-pytorch-dists.yml
- scripts/check_pytorch_package_indices.py
workflow_dispatch:
schedule:
- cron: "20 4 * * *"
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup development environment
uses: ./.github/actions/setup-dev-env
- name: Check available packages on PyTorch indices
id: packages
run: |
OUT=$(python scripts/check_pytorch_package_indices.py)
MISSING=$(echo $OUT | jq -r '.missing | join(",")')
echo "missing=${MISSING}" | tee -a "${GITHUB_OUTPUT}"
EXTRA=$(echo $OUT | jq -r '.extra | join(",")')
echo "extra=${EXTRA}" | tee -a "${GITHUB_OUTPUT}"
[ -z "${MISSING}${EXTRA}" ];
- if: failure()
name: Publish information from template
uses: ./.github/actions/publish-from-template
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MISSING: ${{ steps.packages.outputs.missing }}
EXTRA: ${{ steps.packages.outputs.extra }}
with:
filename: .github/issue-templates/packages-out-of-sync.md