sinedied / publish-devto

:postbox: GitHub Action to publish markdown files on dev.to platform, with assets hosted on GitHub.
MIT License
38 stars 8 forks source link

Failed to deploy - error doesn't give enough info #31

Closed dfberry closed 1 year ago

dfberry commented 1 year ago

Trying to deploy my first md to dev.to with this github action. Not sure if the issue is how I set up Dev.to or how I set up this action. Deploy is here. Dev.to token is in the secret.

Run sinedied/publish-devto@v2
  with:
    devto_key: ***
    branch: main
    files: blog/**/*.md
    conventional_commits: true
    dry_run: false
  env:
    deployment_status: success
Warning: Can't add secret mask for empty string in ##[add-mask] command.
Found 1 article(s)
- Retrieving articles from dev.to…
blog/[2](https://github.com/dfberry/dfberry.github.io/actions/runs/4100756031/jobs/7071870337#step:8:2)02[3](https://github.com/dfberry/dfberry.github.io/actions/runs/4100756031/jobs/7071870337#step:8:3)-01-blog.md has error(s):
- Update failed: HTTPError: Response code [4](https://github.com/dfberry/dfberry.github.io/actions/runs/4100756031/jobs/7071870337#step:8:4)22 (Unprocessable Entity)
[FAILED] [DRAFT] TypeScript type guard for empty JSON object           
No detected changes, skipping commit step.

Warning: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-[10](https://github.com/dfberry/dfberry.github.io/actions/runs/4100756031/jobs/7071870337#step:8:11)-11-github-actions-deprecating-save-state-and-set-output-commands/

Warning: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-[11](https://github.com/dfberry/dfberry.github.io/actions/runs/4100756031/jobs/7071870337#step:8:12)-github-actions-deprecating-save-state-and-set-output-commands/