Skip to content

Update date sanitization logic in defra.js #222

Update date sanitization logic in defra.js

Update date sanitization logic in defra.js #222

Workflow file for this run

name: ci
on:
pull_request:
branches:
- main
jobs:
depcheck:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: install depcheck
run: npm install depcheck --legacy-peer-deps
- name: run depcheck
id: rundepcheck
run: |
DEPCHECK=$(npx depcheck --ignores=depcheck --json) || true
echo "DEPCHECK_RESULT=$DEPCHECK" >> $GITHUB_ENV
- name: Generate PR comment
id: generate_pr_comment
run: |
COMMENT=$(bash ./scripts/process_depcheck_output.sh "$DEPCHECK_RESULT")
echo "PR_COMMENT=$COMMENT" >> $GITHUB_ENV
- name: Comment PR
if: env.PR_COMMENT != ''
uses: thollander/actions-comment-pull-request@v2
with:
message: |
results:
${{ env.PR_COMMENT }}