From bbe9d0b305bfd2af1574eb7494d46f9551445b16 Mon Sep 17 00:00:00 2001 From: Pavel Angelov Date: Thu, 8 Jan 2026 10:12:38 +0200 Subject: [PATCH 1/5] this --- .github/workflows/lint.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index c8828bbc04..fe8d60e62c 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -19,9 +19,9 @@ jobs: uses: actions/cache@v4 with: path: .eslintcache - key: eslint-${{ runner.os }}-${{ github.ref_name }} + key: eslint-${{ runner.os }}-${{ hashFiles('.eslintrc.js') }}-${{ github.ref_name }} restore-keys: | - eslint-${{ runner.os }}- + eslint-${{ runner.os }}-${{ hashFiles('.eslintrc.js') }}- - name: Run ESLint run: yarn lint From f5590d6f7905b805c46290037ae58f011faa02ae Mon Sep 17 00:00:00 2001 From: Pavel Angelov Date: Thu, 8 Jan 2026 10:24:40 +0200 Subject: [PATCH 2/5] run linter on merges to main to prepare cache --- .github/workflows/lint.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index fe8d60e62c..d9b535ad3c 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -2,6 +2,10 @@ name: Lint on: workflow_call: + workflow_dispatch: + push: + branches: + - main jobs: lint: From b27d360c99c9f57187fe9832cb0e5af18f0d1ea3 Mon Sep 17 00:00:00 2001 From: Pavel Angelov Date: Thu, 8 Jan 2026 10:34:50 +0200 Subject: [PATCH 3/5] add run-lint label mechanism --- .github/workflows/lint.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d9b535ad3c..e0baac105d 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -3,12 +3,15 @@ name: Lint on: workflow_call: workflow_dispatch: + pull_request: + types: [labeled] push: branches: - main jobs: lint: + if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run-lint') runs-on: ubuntu-latest name: ESLint steps: From 6ecfa34163d8e5df2c9299d563f2f50d50c1f8c9 Mon Sep 17 00:00:00 2001 From: Pavel Angelov Date: Thu, 8 Jan 2026 13:26:48 +0200 Subject: [PATCH 4/5] address PR comments --- .github/workflows/lint.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index e0baac105d..80bbe68a65 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,11 @@ on: jobs: lint: - if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run-lint') + if: | + github.event_name == 'workflow_call' || + github.event_name == 'workflow_dispatch' || + github.event_name == 'push' || + (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'run-lint')) runs-on: ubuntu-latest name: ESLint steps: @@ -32,4 +36,3 @@ jobs: - name: Run ESLint run: yarn lint - From d17909660007a0cdf3cdbc2e753b2a5f0cf0be06 Mon Sep 17 00:00:00 2001 From: Pavel Angelov Date: Thu, 8 Jan 2026 13:46:49 +0200 Subject: [PATCH 5/5] drop run-lint label support --- .github/workflows/lint.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 80bbe68a65..8fdbbad905 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -3,19 +3,12 @@ name: Lint on: workflow_call: workflow_dispatch: - pull_request: - types: [labeled] push: branches: - main jobs: lint: - if: | - github.event_name == 'workflow_call' || - github.event_name == 'workflow_dispatch' || - github.event_name == 'push' || - (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'run-lint')) runs-on: ubuntu-latest name: ESLint steps: