From c9332d69684aae96ced4953dcefe94ce0ed2f370 Mon Sep 17 00:00:00 2001 From: hiento09 <136591877+hiento09@users.noreply.github.com> Date: Wed, 10 Apr 2024 17:16:37 +0700 Subject: [PATCH] Enable ci linter workflow_dispatch event (#2673) Co-authored-by: Hien To --- .github/workflows/jan-electron-linter-and-test.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/jan-electron-linter-and-test.yml b/.github/workflows/jan-electron-linter-and-test.yml index a76d90a34..2f1d1b3a2 100644 --- a/.github/workflows/jan-electron-linter-and-test.yml +++ b/.github/workflows/jan-electron-linter-and-test.yml @@ -38,7 +38,7 @@ on: jobs: test-on-macos: - if: github.event.pull_request.head.repo.full_name == github.repository + if: (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) || github.event_name == 'push' || github.event_name == 'workflow_dispatch' runs-on: [self-hosted, macOS, macos-desktop] steps: - name: Getting the repo @@ -109,7 +109,7 @@ jobs: CSC_IDENTITY_AUTO_DISCOVERY: "false" test-on-windows: - if: github.event_name == 'push' + if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' strategy: fail-fast: false matrix: @@ -155,7 +155,7 @@ jobs: TURBO_TEAM: "windows" TURBO_TOKEN: "${{ secrets.TURBO_TOKEN }}" test-on-windows-pr: - if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository + if: (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) || github.event_name == 'push' || github.event_name == 'workflow_dispatch' runs-on: windows-desktop-default-windows-security steps: - name: Getting the repo @@ -228,7 +228,7 @@ jobs: test-on-ubuntu: runs-on: [self-hosted, Linux, ubuntu-desktop] - if: github.event.pull_request.head.repo.full_name == github.repository + if: (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) || github.event_name == 'push' || github.event_name == 'workflow_dispatch' steps: - name: Getting the repo uses: actions/checkout@v3