Skip to content

Commit

Permalink
Update size action to only run when src files change (#2962)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewiggins authored Jan 25, 2021
1 parent a7fc0b3 commit 4783894
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/main.yml → .github/workflows/size.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
name: Compressed Size

on: [pull_request]
on:
pull_request:
branches:
- '**'
paths:
- '**/src/**.js'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2-beta
with:
fetch-depth: 1
- uses: actions/checkout@v2
- uses: preactjs/compressed-size-action@v1
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'

0 comments on commit 4783894

Please sign in to comment.