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]+)"]'