Skip to content

Commit 9aa5c86

Browse files
committed
try
1 parent cf35884 commit 9aa5c86

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/update-doc-db.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ on:
1818
defaults:
1919
run:
2020
shell: bash
21-
working-directory: ./crates/rustpython-doc
2221

2322
jobs:
2423
generate:
@@ -34,7 +33,7 @@ jobs:
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:
@@ -59,8 +58,6 @@ jobs:
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
@@ -77,7 +74,7 @@ jobs:
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

Comments
 (0)