Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
stoobie authored and xiaolou86 committed Apr 7, 2024
1 parent 67e26cd commit 6c40219
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
name: Pull request workflow

on:
pull_request_target:
types:
- opened
- reopened
- synchronize
pull_request:
branches:
- 'main'
- 'dev'

permissions:
contents: write
pull-requests: write
- '*'

jobs:

Expand All @@ -29,7 +20,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2
with:
ref: refs/pull/${{ github.event.pull_request.number }}/merge
node-version: 16

- name: Install Node.js
uses: actions/setup-node@v2
Expand Down Expand Up @@ -58,8 +49,9 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2
with:
node-version: 16
ref: gh-pages
token: ${{ secrets.GITHUB_TOKEN }}
USER_TOKEN: ${{ secrets.USER_TOKEN }}

- name: Extract PR details
id: pr
Expand Down Expand Up @@ -94,7 +86,6 @@ jobs:
git status
git config user.name "GitHub Actions"
git config user.email [email protected]
git add .
Expand Down

0 comments on commit 6c40219

Please sign in to comment.