Skip to content

build(deps-dev): bump eslint from 8.57.0 to 9.11.1 in the dev-deps-major group across 1 directory #723

build(deps-dev): bump eslint from 8.57.0 to 9.11.1 in the dev-deps-major group across 1 directory

build(deps-dev): bump eslint from 8.57.0 to 9.11.1 in the dev-deps-major group across 1 directory #723

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)
}