diff --git a/.github/workflows/autodify.yaml b/.github/workflows/autodify.yaml new file mode 100644 index 0000000..e572118 --- /dev/null +++ b/.github/workflows/autodify.yaml @@ -0,0 +1,44 @@ +name: Daily Dify Workflow + +on: + schedule: + - cron: '50 09 * * *' + workflow_dispatch: + +jobs: + call-dify-api: + runs-on: ubuntu-latest + steps: + - name: Call Dify API + run: | + DIFY_API_KEY="${{ secrets.DIFY_API_KEY }}" + DIFY_API_ENDPOINT="https://api.dify.ai/v1" + + # 构建请求体 + PAYLOAD=$(cat <