Ingest Semantic CV #8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Ingest Semantic CV | |
| on: | |
| workflow_dispatch: | |
| workflow_run: | |
| workflows: ["pages-build-deployment"] | |
| types: | |
| - completed | |
| jobs: | |
| ingest: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Download rendered CV from site | |
| run: curl -sSL https://www.henrikbecker.net/assets/henrik-becker.html -o henrik-becker.html | |
| - name: Post Semantic CV to ingestion API | |
| env: | |
| API_KEY: ${{ secrets.AZURE_OPENAI_APIKEY }} | |
| run: | | |
| curl -X POST https://henrikbecker.azurewebsites.net/ai/ingest \ | |
| -H "Content-Type: text/plain" \ | |
| -H "Authorization: Bearer $API_KEY" \ | |
| -H "X-Commit: ${{ github.sha }}" \ | |
| -H "X-Source: github" \ | |
| --data-binary @henrik-becker.html | |