Parcourir la source

workflow: update size report to compare against pr target branch

Evan You il y a 1 an
Parent
commit
4e5cafe77b
2 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 1 0
      .github/workflows/size-data.yml
  2. 1 1
      .github/workflows/size-report.yml

+ 1 - 0
.github/workflows/size-data.yml

@@ -4,6 +4,7 @@ on:
   push:
     branches:
       - main
+      - minor
   pull_request:
     branches:
       - main

+ 1 - 1
.github/workflows/size-report.yml

@@ -58,7 +58,7 @@ jobs:
       - name: Download Previous Size Data
         uses: dawidd6/action-download-artifact@v6
         with:
-          branch: main
+          branch: ${{ github.base_ref }}
           workflow: size-data.yml
           event: push
           name: size-data