Skip to content

e2e-target

e2e-target #2658

Workflow file for this run

name: e2e-target
on:
workflow_run:
workflows:
- ts
types:
- completed
jobs:
test:
name: test / ${{ github.event_name }} / ${{ github.event.action }}
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
actions: read
checks: write
contents: read
steps:
- name: Event
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
script: |
core.info(`eventName=${context.eventName}`)
core.info(`sha=${context.sha}`)
core.info(`ref=${context.ref}`)
core.info(`actor=${context.actor}`)
core.info(`payload=${JSON.stringify(context.payload, undefined, 2)}`)
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
ref: ${{ github.event.workflow_run.head_sha }}
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 20
- run: corepack enable pnpm
- run: pnpm i
- run: pnpm build
- uses: ./
with:
datadog-api-key: ${{ secrets.DATADOG_API_KEY }}
collect-job-metrics: true
collect-step-metrics: true
- if: always()
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
script: |
const details_url = `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`
await github.rest.checks.create({
...context.repo,
name: 'e2e-target',
head_sha: context.payload.workflow_run.head_sha,
conclusion: '${{ job.status }}',
details_url,
output: {
title: '${{ job.status }}',
summary: details_url,
},
})