Skip to content

Commit 83c6111

Browse files
committed
ci: fix nightly_docs workflow, use org Github App
1 parent 2f333c8 commit 83c6111

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/nightly_docs.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,10 @@ jobs:
3434
if: github.ref == 'refs/heads/master'
3535
needs: [build_docs]
3636
runs-on: ubuntu-latest
37-
permissions:
38-
contents: write
3937
steps:
4038
- name: Checkout `bitcoindevkit.org`
4139
uses: actions/checkout@v4
4240
with:
43-
persist-credentials: false
44-
ssh-key: ${{ secrets.DOCS_PUSH_SSH_KEY }}
4541
repository: bitcoindevkit/bitcoindevkit.org
4642
ref: master
4743
- name: Create directories
@@ -54,7 +50,12 @@ jobs:
5450
name: built-docs
5551
path: ./docs/.vuepress/public/docs-rs/bdk/nightly/latest
5652
- name: Configure git
57-
run: git config user.email "github-actions@github.com" && git config user.name "github-actions"
53+
run: |
54+
git config user.name "github-actions"
55+
git config user.email "github-actions@github.com"
56+
git remote remove origin
57+
git remote add origin https://x-access-token:${APP_TOKEN}@github.com/${GITHUB_ORG}/bitcoindevkit.org.git
58+
git fetch origin
5859
- name: Commit
5960
continue-on-error: true # If there's nothing to commit this step fails, but it's fine
6061
run: git add ./docs/.vuepress/public/docs-rs && git commit -m "Publish autogenerated nightly docs"

0 commit comments

Comments
 (0)