Skip to content

[workflows] Replace deprecated command with environment file #3272

[workflows] Replace deprecated command with environment file

[workflows] Replace deprecated command with environment file #3272

Workflow file for this run

name: Check Copyright
on:
pull_request:
branches: [ main ]
jobs:
check-format:
if: ${{ ! contains(github.event.pull_request.labels.*.name, 'PR/NO TEST') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: refs/pull/${{ github.event.number }}/merge
- uses: actions/setup-node@v3
with:
node-version: '16'
- run: npm install
- run: npx ts-node infra/copyright/copyright-checker.ts
- if: ${{ hashFiles('copyright-checker.fail') }}
run: |
cat copyright-checker.fail
exit 1