Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit49b9d6a

Browse files
committed
fix(ci): cannot run doc preview for PR from forked repo
1 parent707a327 commit49b9d6a

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

‎.github/workflows/ci.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,13 @@ jobs:
2828
-name:Build HTML Docs
2929
run:VERSION=${{ github.event.repository.default_branch }} JOBS=4 MODE=html make all
3030

31-
-uses:actions/create-github-app-token@v2
32-
id:app-token
33-
with:
34-
app-id:${{ secrets.APP_ID }}
35-
private-key:${{ secrets.APP_PRIVATE_KEY }}
36-
3731
-name:Deploy PR Doc Preview
32+
# PR from the forked repo would be denied as the permission is not granted.
33+
# Allow only PR from this repo.
34+
if:${{ ( github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name ) }}
3835
uses:rossjrw/pr-preview-action@v1
3936
with:
4037
source-dir:../cpython/Doc/build/html
41-
token:${{ steps.app-token.outputs.token }}
4238
preview-branch:gh-pages
4339
umbrella-dir:pr-preview
4440
action:auto

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp