Skip to content

RFC300: Programmatic Toolkit #1280

RFC300: Programmatic Toolkit

RFC300: Programmatic Toolkit #1280

Workflow file for this run

name: PR Lint
on:
pull_request_target: {}
workflow_dispatch: {}
permissions:
contents: read
jobs:
markdownlint:
runs-on: ubuntu-latest
steps:
# Checkout of the source to be validated
- uses: actions/checkout@v4
with:
ref: "${{ github.event.pull_request.merge_commit_sha }}"
path: checkout_pr
# Checkout of tools from 'main'; necessary to avoid compromise of GitHub token
# (due to pull_request_target)
- uses: actions/checkout@v4
with:
ref: main
path: checkout_main
- uses: actions/setup-node@v4
with:
node-version: lts/*
# Run linter from 'main' on the working copy
- name: run linter
run: |
cd checkout_pr
../checkout_main/lint.sh