Skip to content

Commit

Permalink
fix lint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamer-zq committed Jul 2, 2024
1 parent 326ef3f commit 42c7e29
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: actions/setup-go@v3
with:
go-version: "1.19"
Expand All @@ -29,8 +27,7 @@ jobs:
- name: run linting (long)
if: env.GIT_DIFF
id: lint_long
run: |
nix develop -c make lint
run: make lint
env:
NIX: 1
- uses: technote-space/[email protected]
Expand All @@ -41,8 +38,7 @@ jobs:
*.go
- name: run linting (short)
if: steps.lint_long.outcome == 'skipped' && env.GIT_DIFF
run: |
nix develop -c make lint
run: make lint
env:
GIT_DIFF: ${{ env.GIT_DIFF }}
LINT_DIFF: 1
Expand Down

0 comments on commit 42c7e29

Please sign in to comment.