1818defaults :
1919 run :
2020 shell : bash
21- working-directory : ./crates/rustpython-doc
2221
2322jobs :
2423 generate :
3433 with :
3534 persist-credentials : false
3635 sparse-checkout : |
37- crates/rustpython- doc
36+ crates/doc
3837
3938 - uses : actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
4039 with :
5958 with :
6059 ref : ${{ inputs.ref || github.ref }}
6160 token : ${{ secrets.AUTO_COMMIT_PAT }}
62- sparse-checkout : |
63- crates/rustpython-doc
6461
6562 - name : Download generated doc DBs
6663 uses : actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
7774 # Format merged json for the phf macro
7875 jq -r 'to_entries[] | " \(.key | @json) => \(.value | @json),"' crates/doc/generated/merged.json > crates/doc/generated/raw_entries.txt
7976
80- OUTPUT_FILE='src/data.inc.rs'
77+ OUTPUT_FILE='crates/doc/ src/data.inc.rs'
8178
8279 echo -n '' > $OUTPUT_FILE
8380
@@ -94,19 +91,18 @@ jobs:
9491 - uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
9592 with :
9693 name : doc-db-${{ inputs.python-version }}
97- path : " crates/rustpython- doc/src/data.inc.rs"
94+ path : " crates/doc/src/data.inc.rs"
9895 if-no-files-found : error
9996 retention-days : 7
10097 overwrite : true
10198
10299 - name : Commit and push (non-main branches only)
103100 if : github.ref != 'refs/heads/main' && inputs.ref != 'main'
104- working-directory : .
105101 run : |
106102 git config user.name "github-actions[bot]"
107103 git config user.email "github-actions[bot]@users.noreply.github.com"
108104 if [ -n "$(git status --porcelain)" ]; then
109- git add crates/rustpython- doc/src/data.inc.rs
105+ git add crates/doc/src/data.inc.rs
110106 git commit -m "Update doc DB for CPython ${{ inputs.python-version }}"
111107 git push
112108 fi
0 commit comments