Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing required input "source-path" #13

Open
nikolailehbrink opened this issue Apr 11, 2023 · 2 comments
Open

Missing required input "source-path" #13

nikolailehbrink opened this issue Apr 11, 2023 · 2 comments
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@nikolailehbrink
Copy link

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
Copy link
Owner

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

@SamKirkland SamKirkland added bug Something isn't working documentation Improvements or additions to documentation labels Apr 11, 2023
@SamKirkland SamKirkland self-assigned this Apr 11, 2023
@MysticKnight
Copy link

Same thing is happening to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants