Skip to content

HCL: include new ephemeral block #2160

HCL: include new ephemeral block

HCL: include new ephemeral block #2160

Workflow file for this run

name: Danger
on:
pull_request_target:
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
# Pin Node 20 — Danger v13 uses node-fetch 2.x, which throws
# `ERR_STREAM_PREMATURE_CLOSE` on gzip responses under newer Node.js
# versions provided by the default `ubuntu-latest` runner image.
- uses: actions/setup-node@v3
with:
node-version: 20.x
# create a new branch called pr from the remote PR branch
- run: git remote add pr_repo $PR_URL && git fetch pr_repo $PR_REF && git branch pr pr_repo/$PR_REF
env:
PR_URL: ${{github.event.pull_request.head.repo.clone_url}}
PR_REF: ${{github.event.pull_request.head.ref}}
- run: npm ci
- name: Danger
run: npx danger ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}