Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

65
Visualizações
Create a Github.yaml actions workflow deployment file and get an error

I'm trying to create my first Github Actions workflow and am getting an error that online research isn't helping me resolve. This is a pretty basic workflow at this point for a WordPress site. It is failing on the line "fetch-depth: 0". I've been checking the indentation and looking at examples online.

 name: deploy
on:
 push:
 branches:
 # Pushing to the `master` branch
 # will trigger our workflow
 - master
 paths-ignore:
 # Ignore files and folders
 - 'bin/**'
 - 'readme.html'
concurrency:
 #maximum of one deployment in progress and one deployment pending at a time
 group: ${{ github.workflow }}-${{ github.ref }}
 cancel-in-progress: true
permissions:
 actions: write
 contents: read
jobs:
 deploy:
 runs-on: ubuntu-latest
 steps:
 - name: Checkout
 # Checkout our repository under `${GITHUB_WORKSPACE}`,
 # so our workflow can access it
 uses: actions/checkout@v3
 with:
 # Fetch the entire Git history. 
 fetch-depth: 0

 - name: Deploy via SFTP
 #Deploy via FTP details
 uses: actions/checkout@v3
 with:
 host: ${{ secrets.MW_FTP_SERVER }}
 port: ${{ secrets.MW_FTP_PORT }}
 user: ${{ secrets.MW_FTP_USER }}
 pass: ${{ secrets.MW_FTP_PASS }}
 remoteDir: '/httpdocs'
 options: '--verbose'
over 2 years ago · Carlos Garzón Colorado
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda