Skip to content

Update logo for fritzmg (#598) #343

Update logo for fritzmg (#598)

Update logo for fritzmg (#598) #343

name: Update package index on changes
on:
push:
branches:
- main
paths:
- 'meta/**'
jobs:
index:
runs-on: ubuntu-latest
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
extensions: json
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Cache Composer Vendor
uses: actions/cache@v1
with:
path: indexer/vendor/
key: ${{ runner.os }}-indexer-vendor-${{ hashFiles('indexer/composer.lock') }}
restore-keys: ${{ runner.os }}-indexer-vendor-
- name: Install the dependencies
run: cd indexer && composer install --no-interaction --no-suggest
- name: extract-packages
run: |
echo "packages=$(git diff --name-only HEAD~..HEAD -- | grep -E "^meta/[^/]+/[^/]+/.+?\.(yml|json)" | sed -E 's/meta\/([^\/]+\/[^\/]+)\/[^\/]+$/\1/' | uniq | tr '\n' ' ')" >> $GITHUB_ENV
- name: Update Index
if: env.packages
run: indexer/index ${{ env.packages }} -v --with-stats
env:
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
ALGOLIA_INDEX: v3_packages