From ce2fb9280a1cdd5e91adef36492581a8d5cd072f Mon Sep 17 00:00:00 2001 From: Philippe Weidmann Date: Tue, 14 May 2024 08:09:31 +0200 Subject: [PATCH] ci: Clean build periphery --- .github/workflows/periphery.yml | 2 +- scripts/periphery.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/periphery.yml b/.github/workflows/periphery.yml index 7d35025b7..7382fcb87 100644 --- a/.github/workflows/periphery.yml +++ b/.github/workflows/periphery.yml @@ -21,7 +21,7 @@ jobs: uses: actions/checkout@v2 - name: Periphery id: periphery - run: ./scripts/periphery.sh + run: ./scripts/periphery.sh --clean - uses: mshick/add-pr-comment@v2 with: message: | diff --git a/scripts/periphery.sh b/scripts/periphery.sh index 97c6a99d6..a4762129a 100755 --- a/scripts/periphery.sh +++ b/scripts/periphery.sh @@ -24,3 +24,8 @@ echo "$detailedOutput" >> $GITHUB_OUTPUT echo 'EOF' >> $GITHUB_OUTPUT echo "unused_count=$unusedCount" >> $GITHUB_OUTPUT + + +if [[ "$1" == "--clean" ]]; then + rm -R $HOME/Library/Caches/com.github.peripheryapp +fi