From 3575a2b3c8bce834a79601ff089b0306e0d419aa Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Wed, 10 Jun 2020 08:29:22 +0300 Subject: Update Actions * skip BrowserStack if we are not on the main repo * remove the action filename from cache --- .github/workflows/browserstack.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to '.github/workflows/browserstack.yml') diff --git a/.github/workflows/browserstack.yml b/.github/workflows/browserstack.yml index b20235235..20368b8fe 100644 --- a/.github/workflows/browserstack.yml +++ b/.github/workflows/browserstack.yml @@ -16,6 +16,7 @@ env: jobs: browserstack: runs-on: ubuntu-latest + if: github.repository == 'twbs/bootstrap' steps: - name: Clone repository @@ -30,9 +31,9 @@ jobs: uses: actions/cache@v2 with: path: ~/.npm - key: ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}-${{ hashFiles('.github/workflows/browserstack.yml') }} + key: ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }} restore-keys: | - ${{ runner.OS }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}-${{ hashFiles('.github/workflows/browserstack.yml') }} + ${{ runner.OS }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }} ${{ runner.OS }}-node-v${{ env.NODE }}- - name: Install npm dependencies -- cgit v1.2.3