A local-first personal finance app
fix VRT workflow artifact download (#6126)
Matt Fiddamand9c590bf54d4
diff --git a/.github/workflows/vrt-update-apply.yml b/.github/workflows/vrt-update-apply.ymlindex 38c7948d98..e2bdde9417 100644--- a/.github/workflows/vrt-update-apply.yml+++ b/.github/workflows/vrt-update-apply.yml@@ -37,17 +37,14 @@ jobs:- name: Extract metadataid: metadatarun: |- # Find the metadata directory (will be vrt-metadata-{PR_NUMBER})- METADATA_DIR=$(find /tmp/metadata -mindepth 1 -maxdepth 1 -type d | head -n 1)-- if [ -z "$METADATA_DIR" ]; then+ if [ ! -f "/tmp/metadata/pr-number.txt" ]; thenecho "No metadata found, skipping..."exit 0fi- PR_NUMBER=$(cat "$METADATA_DIR/pr-number.txt")- HEAD_REF=$(cat "$METADATA_DIR/head-ref.txt")- HEAD_REPO=$(cat "$METADATA_DIR/head-repo.txt")+ PR_NUMBER=$(cat "/tmp/metadata/pr-number.txt")+ HEAD_REF=$(cat "/tmp/metadata/head-ref.txt")+ HEAD_REPO=$(cat "/tmp/metadata/head-repo.txt")echo "pr_number=$PR_NUMBER" >> "$GITHUB_OUTPUT"echo "head_ref=$HEAD_REF" >> "$GITHUB_OUTPUT"@@ -68,9 +65,7 @@ jobs:if: steps.metadata.outputs.pr_number != ''id: applyrun: |- # Find the patch file- PATCH_DIR=$(find /tmp/artifacts -mindepth 1 -maxdepth 1 -type d | head -n 1)- PATCH_FILE="$PATCH_DIR/vrt-update.patch"+ PATCH_FILE="/tmp/artifacts/vrt-update.patch"if [ ! -f "$PATCH_FILE" ]; thenecho "No patch file found"diff --git a/upcoming-release-notes/6126.md b/upcoming-release-notes/6126.mdnew file mode 100644index 0000000000..77c1ae0fea--- /dev/null+++ b/upcoming-release-notes/6126.md@@ -0,0 +1,6 @@+---+category: Maintenance+authors: [matt-fidd]+---++Fix VRT workflow artifact download