Skip to content

trying file depth

trying file depth #4

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

View workflow run for this annotation

GitHub Actions / Deploy Astroid API update via Github Actions

Invalid workflow file

The workflow is not valid. .github/workflows/automated_api_deploy.yaml (Line: 10, Col: 5): Unexpected value 'file-depth'
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