forked from swimlane/ngx-datatable
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
12c895c
commit 3561044
Showing
1 changed file
with
4 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,38 +14,11 @@ jobs: | |
with: | ||
node-version: lts/iron | ||
|
||
- name: Set the branch name | ||
id: set_branch | ||
run: | | ||
BRANCH_NAME=${{ github.head_ref }} | ||
echo "Branch name is: $BRANCH_NAME" | ||
# Check for remote branch | ||
REMOTE_BRANCH=$(git ls-remote --heads https://[email protected]/chintankavathia/ngx-datatable-snapshots.git $BRANCH_NAME) | ||
echo "Remote branch lookup result: $REMOTE_BRANCH" | ||
if [ -n "$REMOTE_BRANCH" ]; then | ||
echo "Branch $BRANCH_NAME exists" | ||
echo "branch=$BRANCH_NAME" >> $GITHUB_ENV | ||
else | ||
echo "Branch $BRANCH_NAME does not exist, defaulting to main" | ||
echo "branch=main" >> $GITHUB_ENV | ||
fi | ||
- name: Configure LFS Fetch URL | ||
run: git config remote.origin.lfsurl https://github.com/chintankavathia/ngx-datatable-snapshots.git/info/lfs | ||
|
||
- name: Clone Snapshot Repository | ||
run: | | ||
git clone https://[email protected]/chintankavathia/ngx-datatable-snapshots.git temp_snapshots | ||
cd temp_snapshots | ||
git checkout ${{ env.branch }} | ||
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/ | ||
rm -rf temp_snapshots | ||
- name: Pull Repository with LFS | ||
run: git lfs pull | ||
|
||
- name: Install | ||
uses: bahmutov/npm-install@v1 | ||
|