Cache ImageMagick with awalsh128/cache-apt-pkgs-action
This commit is contained in:
16
.github/workflows/check-mod.yml
vendored
16
.github/workflows/check-mod.yml
vendored
@@ -14,18 +14,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0 # Get full history for comparing changes
|
fetch-depth: 0 # Get full history for comparing changes
|
||||||
|
|
||||||
- name: Cache ImageMagick
|
- name: Use ImageMagick from cache
|
||||||
uses: actions/cache@v3
|
uses: awalsh128/cache-apt-pkgs-action@v1
|
||||||
with:
|
with:
|
||||||
path: /usr/bin/identify
|
packages: imagemagick
|
||||||
key: imagemagick-cache-${{ runner.os }}-${{ hashFiles('**/check-mod.yml') }}
|
|
||||||
restore-keys: imagemagick-cache-${{ runner.os }}-
|
|
||||||
|
|
||||||
- name: Install ImageMagick (if not cached)
|
|
||||||
if: steps.cache.outputs.cache-hit != 'true'
|
|
||||||
run: |
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y imagemagick
|
|
||||||
|
|
||||||
- name: Identify Changed Mods
|
- name: Identify Changed Mods
|
||||||
id: find-changed-mods
|
id: find-changed-mods
|
||||||
@@ -35,7 +27,7 @@ jobs:
|
|||||||
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
|
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
|
||||||
-H "Accept: application/vnd.github.v3+json" \
|
-H "Accept: application/vnd.github.v3+json" \
|
||||||
"https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files")
|
"https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files")
|
||||||
|
|
||||||
# Debug the API response
|
# Debug the API response
|
||||||
echo "Debug - API Response Type: $(echo "$API_RESPONSE" | jq -r 'type')"
|
echo "Debug - API Response Type: $(echo "$API_RESPONSE" | jq -r 'type')"
|
||||||
echo "Debug - First 300 chars of response: $(echo "$API_RESPONSE" | head -c 300)"
|
echo "Debug - First 300 chars of response: $(echo "$API_RESPONSE" | head -c 300)"
|
||||||
|
|||||||
Reference in New Issue
Block a user