diff --git a/.github/workflows/deploy-to-staging.yml b/.github/workflows/deploy-to-staging.yml index 0613be5..5ec3e42 100644 --- a/.github/workflows/deploy-to-staging.yml +++ b/.github/workflows/deploy-to-staging.yml @@ -8,19 +8,18 @@ on: - staging jobs: + Linting: + uses: ./.github/workflows/linting.yml + Deploy: name: FTP-Deploy-Action runs-on: ubuntu-latest - + needs: Linting steps: - uses: actions/checkout@v3 with: fetch-depth: 2 - - name: Linting - id: linting - uses: ./.github/workflows/linting.yml - name: FTP-Deploy-Action - if: steps.linting.outcome == 'success' uses: Automattic/FTP-Deploy-Action@3.1.2 with: ftp-server: sftp://sftp.wp.com/htdocs/wp-content/plugins/custom-plugin/