From 2ff4a6aade78333ed9db187e0fe323dc85f0845e Mon Sep 17 00:00:00 2001 From: Aleksey Khoroshilov Date: Wed, 24 Jul 2024 19:44:02 +0700 Subject: [PATCH] Support merge queue in main branch. --- .github/workflows/generate-test-seed.yml | 2 +- .github/workflows/test-src.yml | 5 ++--- .github/workflows/test.yml | 4 +--- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/generate-test-seed.yml b/.github/workflows/generate-test-seed.yml index 3afacec5..ddbae174 100644 --- a/.github/workflows/generate-test-seed.yml +++ b/.github/workflows/generate-test-seed.yml @@ -59,7 +59,7 @@ jobs: - name: Lint run: | - npm run lint -- --base origin/${{ github.event.pull_request.base.ref }} + npm run lint -- --base ${{ github.event.pull_request.base.sha }} - name: Generate seed run: | diff --git a/.github/workflows/test-src.yml b/.github/workflows/test-src.yml index 48a205e6..0d296512 100644 --- a/.github/workflows/test-src.yml +++ b/.github/workflows/test-src.yml @@ -2,8 +2,7 @@ name: Tracker&Griffin tests on: pull_request: - branches: [main, production] - workflow_dispatch: + merge_group: jobs: build: @@ -26,4 +25,4 @@ jobs: run: npm run test - name: lint - run: npm run lint -- --base origin/${{ github.event.pull_request.base.ref }} + run: npm run lint -- --base ${{ github.event.pull_request.base.sha || github.event.merge_group.base_sha }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1da1a67e..0c1b4af8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,10 +1,8 @@ name: Test on: - push: - branches: [main, production] pull_request: - branches: [main, production] + merge_group: jobs: test: