Skip to content

Delegate first class spans to native SDK when attached #1880

Delegate first class spans to native SDK when attached

Delegate first class spans to native SDK when attached #1880

name: Compare PR stats
on: [pull_request]
concurrency:
# only allow one run of this workflow per branch, otherwise the comment could
# be overwritten by an earlier commit that runs slower than the latest commit
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
base-branch:
uses: ./.github/workflows/record-pr-stats.yml
with:
ref: ${{ github.event.pull_request.base.sha }}
head-branch:
uses: ./.github/workflows/record-pr-stats.yml
with:
ref: ${{ github.sha }}
compare-pr-stats:
runs-on: ubuntu-latest
needs: [base-branch, head-branch]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- run: npm ci
- name: Leave comment
uses: actions/github-script@v6
with:
script: |
const leaveComment = require('./.github/leave-pr-stats-comment.js')
await leaveComment(github, context, require, ${{ toJSON(needs) }})