diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f2648b85..fc86c7b4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,11 +29,11 @@ jobs: node: [18] steps: - - name: Check out repository (push) - if: ${{ github.event_name == 'push' || github.event_name == 'pull_request_target' || github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' }} + - name: Check out repository ✨ + if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' || github.event_name == 'pull_request_target' && github.actor != 'dependabot[bot]' }} uses: actions/checkout@v3 - - name: Check out repository (pull_request_target) + - name: Check out repository 🎉 (dependabot) if: ${{ github.event_name == 'pull_request_target' }} uses: actions/checkout@v3 with: @@ -51,7 +51,7 @@ jobs: run: npm i -g npm@latest - name: Install dependencies 🚀 - run: npm ci --prefer-offline --no-audit --no-optional + run: npm ci --prefer-offline --no-audit - name: Run linter(s) 👀 uses: wearerequired/lint-action@v2 diff --git a/.github/workflows/lint-pr.yml b/.github/workflows/lint-pr.yml index 376bf574..9f80477d 100644 --- a/.github/workflows/lint-pr.yml +++ b/.github/workflows/lint-pr.yml @@ -8,8 +8,20 @@ on: - synchronize jobs: - main: + check-sign-off: + if: startsWith(github.head_ref, 'releases/v') == false + name: Write comment if unsigned commits found + env: + FORCE_COLOR: 1 + runs-on: ubuntu-latest + + steps: + - uses: live627/check-pr-signoff-action@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + semantic-pull-request: name: Validate PR title + needs: [check-sign-off] runs-on: ubuntu-latest steps: - uses: amannn/action-semantic-pull-request@v4