Open
Description
openedon Apr 24, 2023
I had an action which generated database schema whenever .dbml file was changed.
action file
name: Render DBML file
run-name: ${{ github.actor }} is modifying database schema
on:
pull_request:
paths:
- 'database.dbml'
jobs:
Render-DBML:
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: iterative/setup-cml@v1
- uses: actions/checkout@v3
- name: install dbml-renderer
run: npm install -g @softwaretechnik/dbml-renderer
- name: render-dbml
run: |
dbml-renderer -i database.dbml -o schema.png
- name: Create CML report
env:
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo '![](schema.png "Database Schema")' >> report.md
cml comment create report.md
The above action (cml comment) was working properly but is now raising the following error:
{"code":"ERR_INVALID_URL","input":"\r\n<title>400 Bad Request</title>\r\n\r\n
400 Bad Request
\r\n
cloudflare\r\n\r\n\r\n","level":"error","message":"Invalid URL","stack":"TypeError [ERR_INVALID_URL]: Invalid URL\n at new NodeError (node:internal/errors:399:5)\n at new URL (node:internal/url:560:13)\n at uriParam (/usr/local/lib/node_modules/@dvcorg/cml/src/utils.js:151:15)\n at watermarkUri (/usr/local/lib/node_modules/@dvcorg/cml/src/utils.js:142:10)\n at CML.publish (/usr/local/lib/node_modules/@dvcorg/cml/src/cml.js:328:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async visitor (/usr/local/lib/node_modules/@dvcorg/cml/src/cml.js:229:24)\n at async Promise.all (index 0)\n at async publishLocalFiles (/usr/local/lib/node_modules/@dvcorg/cml/src/cml.js:240:7)"}
I changed the GITHUB_TOKEN with a personal access token with read and actions privilege but it's still raising the same issue
Other configurations I've tried:
cml comment create report.md
cml comment update --publish report.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment