diff --git a/.github/workflows/agent-markdown.yml b/.github/workflows/agent-markdown.yml new file mode 100644 index 0000000..ccee4d9 --- /dev/null +++ b/.github/workflows/agent-markdown.yml @@ -0,0 +1,20 @@ +name: Markdown Embedder +on: + workflow_dispatch: {} + push: + branches: + - main + +jobs: + embed-markdown: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + + - name: Send task to coding agent + uses: git.yusufali.ca/automation/action@main + with: + api_url: ${{ secrets.AGENT_API_URL }} # default: https://api.servc.io + api_token: ${{ secrets.AGENT_TOKEN }} # optional, required for authenticated API calls + route: agent-lake # default: agent-lake + debug: false \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index da2072b..f1a25ea 100644 --- a/dist/index.js +++ b/dist/index.js @@ -32907,7 +32907,7 @@ for (const file of markdownFiles) { `Agent API request failed (${response.status}): ${responseText}`, ); } else { - core.info(`Agent response: ${responseText}`); + core.info(`Agent response: ${response.text}`); } }) .catch((error) => core.setFailed(`Error sending task to agent: ${error}`)); diff --git a/index.js b/index.js index c06ddf9..9dc725a 100644 --- a/index.js +++ b/index.js @@ -75,7 +75,7 @@ for (const file of markdownFiles) { `Agent API request failed (${response.status}): ${responseText}`, ); } else { - core.info(`Agent response: ${responseText}`); + core.info(`Agent response: ${response.text}`); } }) .catch((error) => core.setFailed(`Error sending task to agent: ${error}`));