Skip to content
This repository was archived by the owner on Nov 24, 2023. It is now read-only.

Commit 1e4ab47

Browse files
chore: tweaks
1 parent a3b8bc1 commit 1e4ab47

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ jobs:
2323
__tests__/
2424
SUFFIX_FILTER: .ts
2525
FILES: .eslintrc
26-
- name: Dump Env context
27-
env:
28-
GITHUB_CONTEXT: ${{ toJson(env) }}
29-
run: echo "$ENV_CONTEXT"
3026
- name: Get Yarn Cache Directory
3127
id: yarn-cache
3228
run: echo "::set-output name=dir::$(yarn cache dir)"

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,18 @@ jobs:
4141
with:
4242
fetch-depth: 3
4343
- uses: technote-space/get-diff-action@v1
44-
id: git-diff
4544
with:
4645
PREFIX_FILTER: |
4746
src
4847
__tests__
4948
SUFFIX_FILTER: .ts
5049
- name: Install Package dependencies
5150
run: yarn install
52-
if: steps.git-diff.outputs.diff
51+
if: env.GIT_DIFF
5352
- name: Check code style
5453
# Check only the source codes that have differences
55-
run: yarn eslint ${{ steps.git-diff.outputs.diff }}
56-
if: steps.git-diff.outputs.diff
54+
run: yarn eslint ${{ env.GIT_DIFF }}
55+
if: env.GIT_DIFF
5756
```
5857
5958
If there is no difference in the source code below, this workflow will skip the code style check

0 commit comments

Comments
 (0)