Skip to content

build(deps): bump the deps-patch group across 1 directory with 4 updates #1150

build(deps): bump the deps-patch group across 1 directory with 4 updates

build(deps): bump the deps-patch group across 1 directory with 4 updates #1150

Workflow file for this run

name: Commit lint
on:
pull_request
env:
BRANCH: ${{ github.base_ref }}
jobs:
Commits:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Git commits
run: |
git remote add ssh-origin "https://github.com/$GITHUB_REPOSITORY"
git fetch ssh-origin
echo 'GIT_COMMITS<<EOF' >> $GITHUB_ENV
git cherry -v ssh-origin/${{ env.BRANCH }} | grep "+" >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Lint
uses: actions/github-script@v7
with:
script: |
const actionCommit = require(`${process.env.GITHUB_WORKSPACE}/scripts/actions.commit.js`)
const { resultsArray, resultsString } = actionCommit(process.env.GIT_COMMITS)
if (resultsArray.length) {
core.setFailed(resultsString)
}