diff --git a/.github/workflows/dependabot-yarn-mirror.yml b/.github/workflows/dependabot-yarn-mirror.yml index 65188aa4a..dd7391926 100644 --- a/.github/workflows/dependabot-yarn-mirror.yml +++ b/.github/workflows/dependabot-yarn-mirror.yml @@ -8,11 +8,8 @@ concurrency: jobs: update-offline-mirror: - if: github.repository == github.event.pull_request.head.repo.full_name && contains(github.event.pull_request.labels.*.name, 'dependencies') + if: github.repository == github.event.pull_request.head.repo.full_name && github.event.pull_request.user.login == 'dependabot[bot]' runs-on: ubuntu-latest - strategy: - matrix: - node-version: ['14.x'] steps: - uses: actions/checkout@v2 with: @@ -20,10 +17,9 @@ jobs: - name: Use Node.js uses: actions/setup-node@v2 with: - node-version: ${{ matrix.node-version }} + node-version: '14.x' cache: yarn - name: Update yarn offline mirror - if: contains(github.event.pull_request.labels.*.name, 'dependencies') run: | git config --global user.email ${{ secrets.BOT_EMAIL }} git config --global user.name ${{ secrets.BOT_NAME }}