High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix: handle missing checkbox in close-dupes (#21689)
bo0tzzb97d73d7a7f7
diff --git a/.github/workflows/close-duplicates.yml b/.github/workflows/close-duplicates.ymlindex 3237a84765..d9ac98aa2d 100644--- a/.github/workflows/close-duplicates.yml+++ b/.github/workflows/close-duplicates.yml@@ -37,20 +37,19 @@ jobs:container:image: yshavit/mdq:0.9.0@sha256:4399483ca857fb1a7ed28a596f754c7373e358647de31ce14b79a27c91e1e35eoutputs:- json: ${{ steps.get_checkbox.outputs.json }}+ checked: ${{ steps.get_checkbox.outputs.checked }}steps:- id: get_checkboxenv:BODY: ${{ needs.get_body.outputs.body }}- # TODO: We should detect if the checkbox is missing entirely and also close_and_comment in that case.run: |- JSON=$(echo "$BODY" | base64 -d | /mdq --output json '# I have searched | - [?] Yes')- echo "json=$JSON" >> $GITHUB_OUTPUT+ CHECKED=$(echo "$BODY" | base64 -d | /mdq --output json '# I have searched | - [?] Yes' | jq '.items[0].list[0].checked // false')+ echo "checked=$CHECKED" >> $GITHUB_OUTPUTclose_and_comment:runs-on: ubuntu-latestneeds: [get_checkbox_json, should_run]- if: ${{ needs.should_run.outputs.should_run == 'true' && !fromJSON(needs.get_checkbox_json.outputs.json).items[0].list[0].checked }}+ if: ${{ needs.should_run.outputs.should_run == 'true' && needs.get_checkbox_json.outputs.checked != 'true' }}permissions:issues: writediscussions: write