Update main.py #15
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: CICD-SSH | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- '**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: executing remote ssh commands using ssh key | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.HOST }} | |
username: ${{ secrets.USERNAME }} | |
key: ${{ secrets.SSH_KEY }} | |
port: 22 | |
script: | | |
source /home/pl120943/anaconda3/etc/profile.d/conda.sh | |
conda activate temp | |
git pull origin main | |
cd source | |
echo "Download Start" | |
python download.py | |
echo "Download End" |