Fixing Build on Node LTS #932
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: Lint Commit Messages | |
on: [pull_request_target] | |
jobs: | |
commitlint: | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.PIPELINE_BOT_PAT }} | |
fetch-depth: 0 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 'lts/*' | |
cache: 'npm' | |
- name: Ensure full history | |
run: | | |
git remote add upstream ${{ github.event.pull_request.head.repo.clone_url }} | |
git fetch upstream | |
- id: commitlint | |
uses: wagoid/commitlint-github-action@v5 | |
- id: lint_results_msg | |
name: Generate Lint Results Message | |
if: always() | |
env: | |
COMMIT_RESPONSE: ${{ steps.commitlint.outputs.results }} | |
run: | | |
npm i commander | |
npm i @actions/core | |
node ./workflow-helpers/generate-commitlint-response.js --results "$COMMIT_RESPONSE" | |
- name: Post comment | |
if: ${{ always() }} | |
uses: mshick/add-pr-comment@v1 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
repo-token-user-login: 'github-actions[bot]' | |
message: | | |
## Commitlint | |
${{ steps.lint_results_msg.outputs.msg }} |