Skip to content

Component rendering next rebase #1910

Component rendering next rebase

Component rendering next rebase #1910

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

Check failure on line 13 in .github/workflows/compare-pr-stats.yml

View workflow run for this annotation

GitHub Actions / Compare PR stats

Invalid workflow file

The workflow is not valid. In .github/workflows/compare-pr-stats.yml (Line: 13, Col: 11): Error from called workflow bugsnag/bugsnag-js-performance/.github/workflows/record-pr-stats.yml@31616323e6528dd3b0c2960639f745552ec0fe9e (Line: 93, Col: 9): 'uses' is already defined In .github/workflows/compare-pr-stats.yml (Line: 13, Col: 11): Error from called workflow bugsnag/bugsnag-js-performance/.github/workflows/record-pr-stats.yml@31616323e6528dd3b0c2960639f745552ec0fe9e (Line: 94, Col: 9): 'with' is already defined
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@1a4442cacd436585916779262731d5b162bc6ec7 # v3.8.2
with:
node-version: 18
cache: 'npm'
- run: npm ci
- name: Leave comment
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1
with:
script: |
const leaveComment = require('./.github/leave-pr-stats-comment.js')
await leaveComment(github, context, require, ${{ toJSON(needs) }})