Skip to content

Commit

Permalink
fix: generate previews from forked repos
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaolou86 committed Feb 4, 2024
1 parent 6fb296d commit dd78a5b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ on:
# branches:
# - main

#permissions:
# contents: write
permissions:
contents: write


jobs:
Expand Down Expand Up @@ -135,6 +135,8 @@ jobs:
fi
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
#GITHUB_TOKEN: "${{ secrets.USER_TOKEN }}"
#USER_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

- name: "Send comment to PR"
continue-on-error: true
Expand All @@ -143,5 +145,6 @@ jobs:
echo "Your preview build is ready! ✨ Check the following link in 1-2 minutes: https://starknet-io.github.io/starknet-docs/${{ steps.pr.outputs.PR_ID }}/documentation/ ." >/tmp/comment
gh pr comment ${{ github.event.pull_request.number }} -F /tmp/comment
env:
# USER_TOKEN: "${{ secrets.USER_TOKEN }}"
GH_TOKEN: "${{ github.token }}"
USER_TOKEN: "${{ secrets.USER_TOKEN }}"
#GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
#GH_TOKEN: "${{ github.token }}"

0 comments on commit dd78a5b

Please sign in to comment.