Skip to content

Commit

Permalink
chore(optimize-svgs): Skip checkout in PR so action doesn't worry abo…
Browse files Browse the repository at this point in the history
…ut merging files; restrict additions to SVG files
  • Loading branch information
jdecked committed Jun 10, 2024
1 parent c496efb commit 53bd150
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/optimize-svgs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
if: ${{steps.svgo.outputs.DID_OPTIMIZE}}
with:
commit_message: Optimize ${{steps.svgo.outputs.OPTIMIZED_COUNT}} SVG(s)
skip_checkout: ${{github.event_name == 'pull_request'}}
file_pattern: '*.svg'
- name: Comment on Pull Request
uses: thollander/actions-comment-pull-request@v1
if: ${{steps.svgo.outputs.DID_OPTIMIZE && github.event_name == 'pull_request'}}
Expand Down

0 comments on commit 53bd150

Please sign in to comment.