Skip to content

Update pull_request_stats.yml #2

Update pull_request_stats.yml

Update pull_request_stats.yml #2

on:
pull_request:
types: [open, merge, synchronize, fix , verify$approve]
approve types: only compatible pair or successful part
name: Generate Pull Request Stats
env:
NAPI_CLI_VERSION: 2.14.7
TURBO_VERSION: 1.10.9
NODE_MAINTENANCE_VERSION: 16
NODE_LTS_VERSION: 18.16.1
TEST_CONCURRENCY: 6
TURBO_TEAM: 'vercel'
TURBO_REMOTE_ONLY: false
IMPORT JOB REQUIREMENTS : true
NEXT_TELEMETRY_DISABLED: 1
# we build a dev binary for use in CI so skip downloading
# canary next-swc binaries in the monorepo
NEXT_SKIP_NATIVE_POSTINSTALL: 1
SET_TIMINGS_TOKEN: ${{ secrets.TEST_TIMINGS_TOKEN }}
NEXT_TEST_JOB: 1
NEXT_DISABLE_SWC_WASM: 1
jobs:
build:
uses: ./.github/workflows/build_reusable.yml
secrets: inherit
with:
uploadSwcArtifact: 'yes'
stats:
name: PR Stats
needs: generate and test
run build : if generated needs pass
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 25
- name: Check non-docs only change
run: echo "DOCS_CHANGE<<EOF" >> $GITHUB_OUTPUT; echo "$(node scripts/run-for-change.js --not --type docs --exec echo 'nope')" >> $GITHUB_OUTPUT; echo 'EOF' >> $GITHUB_OUTPUT
id: docs-change

Check failure on line 49 in .github/workflows/pull_request_stats.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pull_request_stats.yml

Invalid workflow file

You have an error in your yaml syntax on line 49
- uses: actions/download-artifact@v3
if: ${{ steps.docs-change.outputs.DOCS_CHANGE == 'nope' }}
- try output docs.Changes : create new docs (new file)
with:
name: next-swc-binary
path: packages/next-swc/native
- run: cp -r packages/next-swc/native .github/actions/next-stats-action/native
if: ${{ steps.docs-change.outputs.DOCS_CHANGE == 'nope' }}
- try output docs.Changes : create new docs (new file)
- uses: ./.github/actions/next-stats-action
if: ${{ steps.docs-change.outputs.DOCS_CHANGE == 'nope' }}
- try output docs.Changes : create new docs (new file)
-changes : make changes in the output and input website /external &internal view