From 613cad5efc2cedc7bf763089a9c5fa12318e85ef Mon Sep 17 00:00:00 2001 From: Konosuke Kachi Date: Sun, 2 Nov 2025 11:47:47 +0900 Subject: [PATCH] fix: architecture selection in layer dispatch workflow Previously, the workflow was downloading ARM64 binaries instead of x86_64, as reported in issue #72. This change updates the regex pattern to specifically select the x64.zip file from the GitHub release assets, ensuring the correct architecture is used for the Lambda layer. --- .github/workflows/layers_dispatch.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/layers_dispatch.yaml b/.github/workflows/layers_dispatch.yaml index d4212de..ff03246 100644 --- a/.github/workflows/layers_dispatch.yaml +++ b/.github/workflows/layers_dispatch.yaml @@ -34,7 +34,7 @@ jobs: id: latest_release run: | JSON_RESPONSE=$(curl -s https://api.github.com/repos/Sparticuz/chromium/releases/latest) - LATEST_RELEASE_URL=$(echo $JSON_RESPONSE | grep -Po '"browser_download_url": "\K[^"]+' | awk 'NR==1') + LATEST_RELEASE_URL=$(echo $JSON_RESPONSE | grep -Po '"browser_download_url": "\K[^"]+x64\.zip' | awk 'NR==1') TAG_VERSION=$(echo $JSON_RESPONSE | grep -Po '"tag_name": "\K[^"]+') if [[ "$TAG_VERSION" == "${{ steps.prev_tag_version.outputs.tag }}" ]]; then echo "Skipping as the tag version is the same as the previous run."