From 1d418e1eb253f6f3659f4bda6f3f5fd0bf5e282a Mon Sep 17 00:00:00 2001 From: Chintan Kavathia Date: Tue, 26 Nov 2024 10:05:36 +0530 Subject: [PATCH] ci: modify action to clone snapshots from other repo --- .github/workflows/test_and_deploy.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index ee93e96fb..24bed9539 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -14,6 +14,20 @@ jobs: with: node-version: lts/iron + - name: Clone Snapshot Repository + run: | + git clone https://$SNAPSHOT_REPO_TOKEN@github.com/chintankavathia/ngx-datatable-snapshots.git temp_snapshots + env: + SNAPSHOT_REPO_TOKEN: ${{ secrets.SNAPSHOT_REPO_TOKEN }} + + - name: Copy Snapshots to Playwright Folder + run: | + mkdir -p playwright/snapshots + cp -r temp_snapshots/snapshots/e2e playwright/snapshots/ + + - name: Debug Snapshot Folder + run: ls -R playwright/snapshots + - name: Install uses: bahmutov/npm-install@v1