Skip to content

e2e-target

e2e-target #1868

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@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.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@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
ref: ${{ github.event.workflow_run.head_sha }}
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version: 16
cache: yarn
- run: yarn
- run: yarn build
- run: yarn package
- uses: ./
with:
collect-job-metrics: true
- if: always()
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.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,
},
})