Skip to content

Commit

Permalink
cd: update runner and clone
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob-in-son authored Aug 15, 2024
1 parent b4f8fbc commit 7c72519
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 7c72519

Please sign in to comment.