SamKirkland / web-deploy

Deploy your website automatically for free
MIT License
186 stars 30 forks source link

Missing required input "source-path" #13

Open nikolailehbrink opened 1 year ago

nikolailehbrink commented 1 year ago

Bug Description When I open my workflow file than there is linting error, displaying, that there is a missing required input, although the source-path shouldn't be required

My Action Config

on:
  # Triggers the workflow on push or pull request events but only for the "main" branch
  #   push:
  #     branches: ["main"]
  #   pull_request:
  #     branches: ["main"]

  # Allows you to run this workflow manually from the Actions tab
  workflow_dispatch:
jobs:
  web-deploy:
    name: πŸŽ‰ SSH-Deploy
    runs-on: ubuntu-latest
    steps:
      - name: 🚚 Get latest code
        uses: actions/checkout@v3

      - name: πŸ’» Setup Node.js
        uses: actions/setup-node@v3
        with:
          node-version: 18

      - name: πŸ“₯ Install dependencies
        run: npm ci

      - name: πŸ”¨ Build Project
        run: npm run production

      - name: πŸ“‚ Sync files
        # https://github.com/SamKirkland/web-deploy
        uses: SamKirkland/web-deploy@v1
        with:
          target-server: ${{ secrets.SSH_SERVER }}
          remote-user: ${{ secrets.SSH_USERNAME }}
          private-ssh-key: ${{ secrets.SSH_KEY }}
          ssh-port: 22
          destination-path: ./www/public_html/
          rsync-options: >
            --dry-run
            --archive
            --verbose
            --compress
            --delete-after
            --human-readable
            --exclude-from=.github/workflows/deploy/rsync-exclude.txt

Here is a screenshot: image

SamKirkland commented 1 year ago

Root cause: action.yml needs to be updated. Some inputs are defined with required: true when they should be optional.

MysticKnight commented 9 months ago

Same thing is happening to me.