Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/icons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2021-01-11 12:12:42 +0300
committerMark Otto <otto@github.com>2021-01-20 04:26:25 +0300
commit6dc4fa3d91f26182f10930b1e5999dcadb6da00d (patch)
tree478060e7b44b2587f7152d54a07cef7c0928540a /.github
parent0507cc6b06a25a787280147729f4ced981c1d011 (diff)
GitHub Actions cleanup
* lowercase `runner.os` * remove `CI` environment variable since it's already set by the runner * deploy only if we are on our repo
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/deploy.yml8
-rw-r--r--.github/workflows/test.yml5
2 files changed, 6 insertions, 7 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 574a165e4..6d7a6a95f 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -2,17 +2,17 @@ name: Deploy
on:
release:
- types:
+ types:
- published
env:
- CI: true
FORCE_COLOR: 2
NODE: 14.x
jobs:
test:
runs-on: ubuntu-latest
+ if: github.repository == 'twbs/icons'
steps:
- name: Clone repository
@@ -29,8 +29,8 @@ jobs:
path: ~/.npm
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') }}
- ${{ runner.OS }}-node-v${{ env.NODE }}-
+ ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
+ ${{ runner.os }}-node-v${{ env.NODE }}-
- name: Install npm dependencies
run: npm ci
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 26626c4ac..44310dfdd 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -7,7 +7,6 @@ on:
pull_request:
env:
- CI: true
FORCE_COLOR: 2
NODE: 14.x
@@ -32,8 +31,8 @@ jobs:
path: ~/.npm
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') }}
- ${{ runner.OS }}-node-v${{ env.NODE }}-
+ ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
+ ${{ runner.os }}-node-v${{ env.NODE }}-
- name: Install npm dependencies
run: npm ci