From feb93fa69de94918666ef12e59353e01c9908cbd Mon Sep 17 00:00:00 2001 From: mrasheduzzaman Date: Sun, 19 Nov 2023 20:20:48 +0600 Subject: [PATCH] Update CI --- .github/workflows/ci.yml | 16 +++++++++++++++- .github/workflows/pr.yml | 13 ------------- 2 files changed, 15 insertions(+), 14 deletions(-) delete mode 100644 .github/workflows/pr.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4e2b9c8..8301515 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,10 +1,24 @@ name: CI -on: [pull_request] +on: + pull_request: + branches: + - main + types: + - edited + - opened + - reopened + - synchronize + jobs: audit: runs-on: ubuntu-latest steps: + - name: 'PR format check' + uses: 'androidx/check-pr-format-action' + with: + checks: '["(https:\/\/optimizely.atlassian.net\/browse\/){1}(DATA|DSSM){1}-{1}([0-9]+)"]' + - uses: actions/checkout@v3 - name: inspect run: | diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml deleted file mode 100644 index ba81dd7..0000000 --- a/.github/workflows/pr.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: PR format - -on: [pull_request] - -jobs: - format: - runs-on: ubuntu-latest - - steps: - - name: 'PR format check' - uses: 'androidx/check-pr-format-action' - with: - checks: '["(https:\/\/optimizely.atlassian.net\/browse\/){1}(DATA|DSSM){1}-{1}([0-9]+)"]'