diff --git a/.github/workflows/pull_request_dependabot.yml b/.github/workflows/pull_request_dependabot.yml index c3787b7c..3285cafc 100644 --- a/.github/workflows/pull_request_dependabot.yml +++ b/.github/workflows/pull_request_dependabot.yml @@ -1,7 +1,8 @@ name: Build PR (Dependabot) on: - pull_request_target + pull_request_target: + types: [labeled] jobs: build: @@ -12,7 +13,9 @@ jobs: node-version: [12.x] os: [ubuntu-latest] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 + with: + ref: ${{ github.event.pull_request.head.sha }} - name: Use Node.js ${{ matrix.node_version }} uses: actions/setup-node@v1 with: