From c10511b1a0a29e7cc3c1c7e169ca9e5f972eea1d Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Sun, 19 Sep 2021 17:23:41 +0800 Subject: [PATCH] workflow: update linter.yml --- .github/workflows/linter.yml | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index b4c1c118b..71275fe25 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -4,7 +4,7 @@ ## Super Linter GitHub Actions ## ################################# ################################# -name: Lint Code Base +name: Lint Code # # Documentation: @@ -27,7 +27,7 @@ on: jobs: build: # Name the Job - name: Lint Code Base + name: Lint Code # Set the agent to run on runs-on: ubuntu-latest @@ -36,25 +36,9 @@ jobs: ################## steps: ########################## - # Checkout the code base # + # Checkout the code # ########################## - - name: Checkout Code - uses: actions/checkout@v2 - with: - # Full git history is needed to get a proper list of changed files within `super-linter` - fetch-depth: 0 - - ################################ - # Run Linter against code base # - ################################ - - name: Lint Code Base - uses: github/super-linter@v4 - env: - VALIDATE_ALL_CODEBASE: false - DEFAULT_BRANCH: main - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Build + - name: Lint run: | yarn install yarn lint