Skip to content

Commit

Permalink
chore: fix security issue
Browse files Browse the repository at this point in the history
  • Loading branch information
uyarn committed Sep 26, 2023
1 parent f3402b9 commit 99fe303
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/preview-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
preview-success:
runs-on: ubuntu-latest
if: >
github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.event == 'pull_request_target' &&
github.event.workflow_run.conclusion == 'success'
steps:
- name: download _site artifact
Expand Down Expand Up @@ -73,10 +73,10 @@ jobs:
preview-failed:
runs-on: ubuntu-latest
if: >
github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.event == 'pull_request_target' &&
github.event.workflow_run.conclusion == 'failure'
steps:
- name: The job failed
run: |
id=${{ github.event.workflow_run.id }}
echo 工作流 $id 失败了
echo 工作流 $id 失败了

0 comments on commit 99fe303

Please sign in to comment.