Skip to content

Commit

Permalink
fix(CI): cache lfs download, run on PR only, always diff color
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin271 committed Jan 23, 2024
1 parent 04ae66c commit d205fbe
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/check-pr.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
name: Check PR

on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
Expand All @@ -22,12 +17,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: nschloe/action-cached-lfs-checkout@v1
- name: Get images
run:
find . -regextype posix-awk -regex ".*\.(png|gif)" -type f | cut -d"/" -f2- | sort >
/tmp/images
- name: Get lfs files
run: git lfs ls-files | cut -d" " -f3 | sort > /tmp/lfs-files
- name: Diff
run: diff --color /tmp/images /tmp/lfs-files
run: diff --color=always /tmp/images /tmp/lfs-files

0 comments on commit d205fbe

Please sign in to comment.