From 7c72519767ca08a0a0b12b63ebfa784250244881 Mon Sep 17 00:00:00 2001 From: Robinson Uchechukwu Date: Thu, 15 Aug 2024 21:17:09 +0100 Subject: [PATCH] cd: update runner and clone --- .github/workflows/dev.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 62e0fcf3..8dce8308 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -7,7 +7,7 @@ on: jobs: deploy: - runs-on: bingo + runs-on: bp-runner defaults: run: working-directory: /var/www/aihomework/boilerplate/dev @@ -28,22 +28,22 @@ jobs: run: | git remote rm action - - name: Stash or remove local changes - run: | - if git diff --quiet; then - echo "No local changes to stash." - else - echo "Stashing local changes..." - git stash --include-untracked || echo "Failed to stash changes. Attempting to reset..." - git reset --hard || exit 1 - fi + # - name: Stash or remove local changes + # run: | + # if git diff --quiet; then + # echo "No local changes to stash." + # else + # echo "Stashing local changes..." + # git stash --include-untracked || echo "Failed to stash changes. Attempting to reset..." + # git reset --hard || exit 1 + # fi - name: Pull from GitHub id: pull run: | remote_repo="https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git" - git remote add action $remote_repo - git pull action dev + # git remote add action $remote_repo + git clone $remote_repo dev - name: Install dependencies run: yarn install --frozen-lockfile