Skip to content

Commit

Permalink
Revert "fix: share github secrets to dependabot (#712)" (#771)
Browse files Browse the repository at this point in the history
This reverts commit 26f05d4.
  • Loading branch information
pengyk authored Nov 25, 2021
1 parent ce691cc commit c762a5c
Show file tree
Hide file tree
Showing 3 changed files with 13,606 additions and 5,606 deletions.
17 changes: 1 addition & 16 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ on:
branches: [ dev, master ]
pull_request:
branches: [ dev, master ]
pull_request_target:
branches: [ dev, master ]

jobs:
build:
Expand All @@ -26,21 +24,8 @@ jobs:
node-version: [14.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

if: |
(github.event_name == 'pull_request_target' && github.actor == 'dependabot[bot]') ||
(github.event_name != 'pull_request_target' && github.actor != 'dependabot[bot]')
steps:
- name: Checkout
if: ${{ github.event_name != 'pull_request_target' }}
uses: actions/checkout@v2

- name: Checkout PR
if: ${{ github.event_name == 'pull_request_target' }}
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}

- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
Expand Down
Loading

0 comments on commit c762a5c

Please sign in to comment.