Skip to content

chore(deps): update immich to v1.124.2 #180

chore(deps): update immich to v1.124.2

chore(deps): update immich to v1.124.2 #180

Workflow file for this run

name: 🧪 Test
on:
push:
branches:
- main
paths:
- "**/compose.yml"
- .github/workflows/test.yml
pull_request:
paths:
- "**/compose.yml"
- .github/workflows/test.yml
jobs:
detect:
name: 📡 Detect Changed Compose Files
runs-on: Ubuntu-Latest
outputs:
composes: ${{ steps.detect.outputs.composes }}
steps:
- name: 🚚 Checkout Repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 2
- name: 🔄 Check if the Workflow has Changed
id: test-workflow
uses: marceloprado/has-changed-path@df1b7a3161b8fb9fd8c90403c66a9e66dfde50cb # v1.0.1
with:
paths: .github/workflows/test.yml
- name: 📡 Detect Changed Compose Files
id: detect
run: |
while read -r compose; do
! ${{ steps.test-workflow.outputs.changed }} && [[ -z "$(git diff --name-status HEAD^ HEAD "$compose")" ]] && continue
dir="$(dirname "$compose")"
name="$(grep -Po '(?<=<!-- name: ).+(?= -->)' "$dir/README.md")"
echo "$name,$dir" | jq -Rc 'split(",") | { name: .[0], dir: .[1] }'
done < <(find . -name 'compose.yml') | jq -sc | echo "composes=$(cat)" | tee -a "$GITHUB_OUTPUT"
test:
name: ${{ matrix.compose.name }}
needs: detect
runs-on: Ubuntu-Latest
defaults:
run:
working-directory: ${{ matrix.compose.dir }}
strategy:
matrix:
compose: ${{ fromJson(needs.detect.outputs.composes) }}
steps:
- name: 🚚 Checkout Repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: ♻️ Copy the .env
run: |
for dir in "$PWD" "$GITHUB_WORKSPACE"; do
sed -e 's/=$/=./g' "$dir/.env.tmpl" >"$dir/.env"
done
- name: 🐳 Start the Containers
run: docker compose up -d --quiet-pull