Windows testing #17
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
name: Windows Nightly Run | |
on: [push] | |
jobs: | |
clone_repo: | |
runs-on: ubuntu-latest # The action will run on a Linux runner first | |
steps: | |
- name: Install sshpass | |
run: sudo apt-get install -y sshpass | |
- name: Clone repository on EC2 Windows instance using SSH password | |
run: | | |
sshpass -p "pass123!" ssh -o StrictHostKeyChecking=no ${EC2_USER}@${EC2_HOST} 'powershell -Command "Start-Process -FilePath C:\\Users\\nonadmin\\clone-repo.bat -NoNewWindow -Wait"' | |
env: | |
EC2_USER: nonadmin | |
EC2_HOST: ec2-52-90-29-139.compute-1.amazonaws.com | |
EC2_PASSWORD: pass123! |