Skip to content

chore: l10n_languages v1.0.0 #39

chore: l10n_languages v1.0.0

chore: l10n_languages v1.0.0 #39

name: verify_packages
on:
push:
branches: [main]
paths:
- "packages/**"
pull_request:
branches: [main]
paths:
- "packages/**"
- ".github/workflows/verify_packages.yaml"
jobs:
detect-packages:
name: 🔍 Detect Changed Packages
runs-on: ubuntu-latest
timeout-minutes: 5
outputs:
packages: ${{ steps.set-packages.outputs.packages }}
steps:
- name: 📚 Git Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: 🔎 Find Changed Packages
id: set-packages
run: |
PACKAGES=$(git diff --name-only ${{ github.event.pull_request.base.sha || 'HEAD^' }} ${{ github.event.pull_request.head.sha || 'HEAD' }} -- 'packages/**' | \
grep -v '^packages/_\|\.yaml$' | \
cut -d'/' -f2 | \
sort -u | \
jq -R -s -c 'split("\n")[:-1]')
echo "Changed packages: $PACKAGES"
echo "packages=$PACKAGES" >> $GITHUB_OUTPUT
verify-packages:
name: 🛃 Verify ${{ matrix.package }}
needs: detect-packages
if: fromJson(needs.detect-packages.outputs.packages)[0] != null
strategy:
fail-fast: false
matrix:
package: ${{ fromJson(needs.detect-packages.outputs.packages) }}
uses: ./.github/workflows/verify_package_workflow.yaml
with:
package_name: ${{ matrix.package }}
is_flutter: ${{ contains(matrix.package, 'world_') }}
secrets: inherit