From 32abd0bf1a8d1031461ad214aadbd9056b51c561 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 | 15 ++++++++++++++- .github/workflows/pr.yml | 13 ------------- 2 files changed, 14 insertions(+), 14 deletions(-) delete mode 100644 .github/workflows/pr.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4e2b9c8..190bd08 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,10 +1,23 @@ 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]+)"]'