Skip to content

Ingest Semantic CV

Ingest Semantic CV #8

Workflow file for this run

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