From 31b703c408f764d5a357e91595f52b44ed904db6 Mon Sep 17 00:00:00 2001 From: Blayne Chard Date: Wed, 12 Feb 2025 09:33:12 +1300 Subject: [PATCH] build: upgrade visual snapshot to support new artifacts api (#1039) ### Motivation `getsentry/action-visual-snapshot` has been deprecated and archived, it is no longer supported, github has recently removed support for the artifacts API it was using to store the images, causing all of these actions to fail. ### Modifications Fork the github action and update it to support the newer github actions artifacts API. this is a temporary fix with the intention to replace this github action with another more supported action in the near term. ### Verification Checking to see if the build succeeds after this is merged. --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1f5cf468..1f7234a9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -256,7 +256,7 @@ jobs: docker run --rm --network="host" -v $PWD:$PWD ${DOCKER_AWS_ENV} ${SCREENSHOT_CONTAINER} --url http://localhost:5000 --output $PWD/.artifacts/visual-snapshots - name: Save snapshots - uses: getsentry/action-visual-snapshot@v2 + uses: blacha/action-visual-snapshot@v2-next with: save-only: true snapshot-path: .artifacts/visual-snapshots @@ -284,7 +284,7 @@ jobs: - name: Diff snapshots id: visual-snapshots-diff - uses: blacha/action-visual-snapshot@v2 + uses: blacha/action-visual-snapshot@v2-next with: storage-prefix: 's3://linz-basemaps-screenshot' storage-url: 'https://d25mfjh9syaxsr.cloudfront.net'