Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

fix(ci): fix the yarn offline action #796

Merged
merged 1 commit into from
Nov 12, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions .github/workflows/dependabot-yarn-mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,18 @@ 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:
ref: ${{github.event.pull_request.head.ref}}
- 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 }}
Expand Down