Skip to content

Commit

Permalink
fix: ci and lint-pr workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
vinayakkulkarni committed Jul 5, 2022
1 parent cd0796f commit 1967366
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/lint-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1967366

Please sign in to comment.