File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Update PyPA Index
2+
3+ on :
4+ repository_dispatch :
5+ types : [update-project-index]
6+
7+ jobs :
8+ update-index :
9+ runs-on : ubuntu-latest
10+ permissions :
11+ contents : write # Required to commit the updated HTML files back to the repo
12+
13+ steps :
14+ - name : Checkout Index Repository
15+ uses : actions/checkout@v4
16+ with :
17+ ref : " pypa-index"
18+
19+ - name : Setup Python
20+ uses : actions/setup-python@v5
21+ with :
22+ python-version : " 3.13"
23+
24+ - name : Update HTML Files
25+ env :
26+ REPOSITORY_ORG : ${{ github.event.client_payload.repository_org }}
27+ REPOSITORY_NAME : ${{ github.event.client_payload.repository_name }}
28+ RELEASE_TAG : ${{ github.event.client_payload.release_tag }}
29+ PROJECT_NAME : ${{ github.event.client_payload.project_name }}
30+ run : |
31+ python -m pip install -r requirements.txt
32+ python update_index.py --organization $REPOSITORY_ORG --repository $REPOSITORY_NAME --tag $RELEASE_TAG --name $PROJECT_NAME
33+
34+ - name : Commit and Push Changes
35+ run : |
36+ git config --global user.name "Kitware Europe"
37+ git config --global user.email "kitware@kitware.eu"
38+ git add index.html ${{ github.event.client_payload.project_name }}/index.html
39+ git commit -m "index: Update index of ${{ github.event.client_payload.project_org }}/${{ github.event.client_payload.project_name }}"
40+ git push
You can’t perform that action at this time.
0 commit comments