Component rendering next rebase #1910
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 GitHub Actions / Compare PR statsInvalid workflow file
|
||
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) }}) |