trying file depth #4
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: Deploy Astroid API update via Github Actions | ||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
pull_changes: | ||
runs-on: ubuntu-latest | ||
file-depth: 1 | ||
Check failure on line 10 in .github/workflows/automated_api_deploy.yaml GitHub Actions / Deploy Astroid API update via Github ActionsInvalid workflow file
|
||
steps: | ||
- name: API Shutdown | ||
uses: appleboy/ssh-action@master | ||
with: | ||
host: ${{ secrets.SSH_HOST }} | ||
username: ${{ secrets.SSH_USER }} | ||
password: ${{ secrets.SSH_PASSWORD }} | ||
port: ${{ secrets.SSH_PORT }} | ||
script: | | ||
sudo systemctl stop astroidapi | ||
- name: Pull changes | ||
uses: appleboy/ssh-action@master | ||
with: | ||
host: ${{ secrets.SSH_HOST }} | ||
username: ${{ secrets.SSH_USER }} | ||
password: ${{ secrets.SSH_PASSWORD }} | ||
port: ${{ secrets.SSH_PORT }} | ||
script: | | ||
cd /root/astroid | ||
git pull origin main | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Deploy the API | ||
uses: appleboy/ssh-action@master | ||
with: | ||
host: ${{ secrets.SSH_HOST }} | ||
username: ${{ secrets.SSH_USER }} | ||
password: ${{ secrets.SSH_PASSWORD }} | ||
port: ${{ secrets.SSH_PORT }} | ||
script: | | ||
sudo systemctl start astroidapi |