Skip to content

Commit

Permalink
hotfix: pull_request_target issue. (#2941)
Browse files Browse the repository at this point in the history
as titled.
  • Loading branch information
yecol committed Jun 27, 2023
1 parent 08f8d0f commit badf3f3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/docs.yml
Expand Up @@ -9,7 +9,7 @@ on:
- dev/docs
tags:
- "v*"
pull_request_target:
pull_request:
branches:
- main
- docs
Expand Down Expand Up @@ -49,12 +49,12 @@ jobs:
node-version: 16

- name: Leave a marker
if: ${{ steps.changes.outputs.src == 'true' && github.event_name == 'pull_request_target' }}
if: ${{ steps.changes.outputs.src == 'true' && github.event_name == 'pull_request' }}
run: |
touch ${GITHUB_WORKSPACE}/preview-the-docs.mark
- name: Leave the comment on pull request when started
if: ${{ steps.changes.outputs.src == 'true' && github.event_name == 'pull_request_target' }}
if: ${{ steps.changes.outputs.src == 'true' && github.event_name == 'pull_request' }}
uses: actions-cool/maintain-one-comment@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -171,15 +171,15 @@ jobs:
fi
- name: Preview using surge
if: ${{ steps.changes.outputs.src == 'true' && github.event_name == 'pull_request_target' }}
if: ${{ steps.changes.outputs.src == 'true' && github.event_name == 'pull_request' }}
run: |
npm install -g surge
surge ./docs/_build/latest/html \
alibaba-graphscope-build-pr-${{ github.event.number }}.surge.sh \
--token ${{ secrets.SURGE_TOKEN }}
- name: Leave the comment on pull request when succeed
if: ${{ steps.changes.outputs.src == 'true' && github.event_name == 'pull_request_target' }}
if: ${{ steps.changes.outputs.src == 'true' && github.event_name == 'pull_request' }}
uses: actions-cool/maintain-one-comment@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit badf3f3

Please sign in to comment.