Skip to content

Commit

Permalink
Merge pull request #606 from hngprojects/Rob-in-son-patch0
Browse files Browse the repository at this point in the history
cd: update runner and clone
  • Loading branch information
Lanky-23 authored Aug 15, 2024
2 parents b4f8fbc + 7c72519 commit f58c15a
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
deploy:
runs-on: bingo
runs-on: bp-runner
defaults:
run:
working-directory: /var/www/aihomework/boilerplate/dev
Expand All @@ -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
Expand Down

0 comments on commit f58c15a

Please sign in to comment.