From 70cf235d4d5b60c754d5dc8543c627672ae5a841 Mon Sep 17 00:00:00 2001 From: Bankole John Date: Fri, 23 Aug 2024 20:26:28 +0100 Subject: [PATCH] Update prod.yml --- .github/workflows/prod.yml | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/prod.yml b/.github/workflows/prod.yml index cc25ee19..274ba831 100644 --- a/.github/workflows/prod.yml +++ b/.github/workflows/prod.yml @@ -10,11 +10,11 @@ jobs: runs-on: bp_runner defaults: run: - working-directory: /var/www/aihomework/boilerplate/prod + working-directory: /var/www/aihomework/boilerplate/ steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -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 prod + git clone $remote_repo prod + # git remote add action $remote_repo + # git pull $remote_repo prod - name: Install dependencies run: yarn install --frozen-lockfile