Skip to content

Commit

Permalink
Merge pull request #619 from hngprojects/dev-1
Browse files Browse the repository at this point in the history
Update dev.yml
  • Loading branch information
Data-Bishop authored Aug 23, 2024
2 parents bd01931 + 31d4161 commit e1c52ae
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: bp_runner
defaults:
run:
working-directory: /var/www/aihomework/boilerplate
working-directory: /var/www/aihomework/boilerplate/dev

steps:
- name: Checkout code
Expand All @@ -28,23 +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 dev
git clone $remote_repo dev
git remote add action $remote_repo
git pull $remote_repo dev
- name: Install dependencies
run: yarn install --frozen-lockfile
Expand Down

0 comments on commit e1c52ae

Please sign in to comment.