-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ jobs: | |
|
||
steps: | ||
- name: Checkout the repository | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up SSH and Deploy Changes | ||
uses: appleboy/[email protected] | ||
|
@@ -22,13 +22,13 @@ jobs: | |
passphrase: ${{ secrets.SSH_PASSPHRASE }} | ||
port: 22 | ||
script: | | ||
# Install Rust if not already installed | ||
if ! command -v cargo &> /dev/null; then | ||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | ||
source $HOME/.cargo/env | ||
fi | ||
# Ensure Rust installed via rustup is used | ||
export PATH="$HOME/.cargo/bin:$PATH" | ||
# Navigate to project directory and pull latest changes | ||
# Verify Cargo is available | ||
cargo --version || { echo "Cargo not found"; exit 1; } | ||
# Navigate to the project directory | ||
cd fossil-headers-db | ||
git fetch origin main | ||
git reset --hard origin/main | ||
|