diff --git a/.github/workflows/examples.yaml b/.github/workflows/examples.yaml index 18aa0973..ec51b4c7 100644 --- a/.github/workflows/examples.yaml +++ b/.github/workflows/examples.yaml @@ -488,10 +488,21 @@ jobs: name: Generate Combined Size Reports needs: [windows, android, ios, linux, macos, macos-arm] runs-on: ubuntu-latest + permissions: + # Give the default GITHUB_TOKEN write permission to commit and push the + # added or changed files to the repository. + contents: write steps: - uses: actions/checkout@v4 with: + # Checkout the fork/head-repository and push changes to the fork. + # If you skip this, the base repository will be checked out and changes + # will be committed to the base repository! + repository: ${{ github.event.pull_request.head.repo.full_name }} + + # Checkout the branch made in the fork. Will automatically push changes + # back to this branch. ref: ${{ github.head_ref }} # - name: Set up Python diff --git a/scripts/generate_combined_report.py b/scripts/generate_combined_report.py index e480b152..7d68658f 100644 --- a/scripts/generate_combined_report.py +++ b/scripts/generate_combined_report.py @@ -51,7 +51,7 @@ def consolidate_data(reports: list) -> Dict[str, Any]: data = json.load(f) for package, sizes in data.items(): if ( - package == "base_size" or package == "platform" + package == "base_size" or package == "platform" or platform.lower() == "macos_arm" ): # Skip platform mapping continue if package not in combined: