build(deps): bump tslib from 2.7.0 to 2.8.0 #309
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
} |