Skip to content

Commit

Permalink
removed some unused code, trying default input instead of hardcoded main
Browse files Browse the repository at this point in the history
  • Loading branch information
nstolpe committed Nov 5, 2024
1 parent 7b25de5 commit 475a4a2
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/actions/bundle-size/action.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: "Bundle size reporter"
description: "Post bundle size difference compared to another branch"
inputs:
# branch:
# description: 'Branch to compare to'
# required: true
# default: 'main'
branch:
description: 'Branch to compare to'
required: true
default: 'main'
paths:
description: "Paths to json file bundle size report or folder containing bundles"
required: true
Expand Down Expand Up @@ -45,10 +45,9 @@ runs:
- name: Checkout base branch
uses: actions/checkout@v4
with:
ref: "main"
# ref: ${{ inputs.branch }}
# ref: "main"
ref: ${{ inputs.branch }}
path: br-base
# token: ${{ inputs.ghToken }}

- name: see what's in pr-base
shell: bash
Expand All @@ -68,8 +67,6 @@ runs:
with:
paths: ${{ inputs.paths }}
onlyDiff: ${{ inputs.onlyDiff }}
# filter: ${{ inputs.filter }}
# unit: ${{ inputs.unit }}

# Post github action summary
- name: Post summary
Expand All @@ -87,4 +84,3 @@ runs:
header: ${{ inputs.header }}
append: ${{ inputs.append }}
message: "${{ steps.bundleSize.outputs.summary }}"
# GITHUB_TOKEN: ${{ inputs.ghToken }}

0 comments on commit 475a4a2

Please sign in to comment.