From 7953e5917e3a1149d3d1dc961471b1e08135d4bb Mon Sep 17 00:00:00 2001 From: Lanky Date: Fri, 23 Aug 2024 22:37:15 +0100 Subject: [PATCH] Update staging.yml --- .github/workflows/staging.yml | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index 92c611b2..5e84862e 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -10,7 +10,7 @@ jobs: runs-on: bp_runner defaults: run: - working-directory: /var/www/aihomework/boilerplate/staging + working-directory: /var/www/aihomework/boilerplate steps: - name: Checkout code @@ -28,22 +28,23 @@ 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 $remote_repo staging + # git remote add action $remote_repo + # git pull $remote_repo staging + git clone $remote_repo staging - name: Install dependencies run: yarn install --frozen-lockfile