mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-03 17:29:01 +00:00
replace w/ curl
This commit is contained in:
parent
c02b70632f
commit
dc9148b9d5
1 changed files with 19 additions and 20 deletions
39
.github/workflows/publish-to-test-pypi.yml
vendored
39
.github/workflows/publish-to-test-pypi.yml
vendored
|
@ -1,14 +1,15 @@
|
|||
name: Publish Python 🐍 distribution 📦 to TestPyPI
|
||||
|
||||
on:
|
||||
workflow_dispatch: # Keep manual trigger
|
||||
inputs:
|
||||
rc_version:
|
||||
description: 'RC version number (e.g., 1, 2, 3)'
|
||||
required: true
|
||||
type: string
|
||||
schedule:
|
||||
- cron: "0 0 * * *" # Run every day at midnight
|
||||
push
|
||||
# workflow_dispatch: # Keep manual trigger
|
||||
# inputs:
|
||||
# rc_version:
|
||||
# description: 'RC version number (e.g., 1, 2, 3)'
|
||||
# required: true
|
||||
# type: string
|
||||
# schedule:
|
||||
# - cron: "0 0 * * *" # Run every day at midnight
|
||||
|
||||
jobs:
|
||||
trigger-client-and-models-build:
|
||||
|
@ -30,19 +31,17 @@ jobs:
|
|||
echo "version=.dev$(shuf -i 10000000-99999999 -n 1)" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
- name: Trigger llama-stack-client workflow
|
||||
uses: peter-evans/repository-dispatch@v2
|
||||
with:
|
||||
token: ${{ secrets.PAT_TOKEN }}
|
||||
repository: meta-llama/llama-stack-client-python
|
||||
event-type: build-client-package
|
||||
client-payload: '{"source": "llama-stack-nightly", "version": "${{ steps.version.outputs.version }}"}'
|
||||
run: |
|
||||
curl -X POST https://api.github.com/repos/meta-llama/llama-stack-client-python/dispatches \
|
||||
-H 'Accept: application/vnd.github.everest-preview+json' \
|
||||
-H "authorization: Bearer ${{ secrets.PAT_TOKEN }}" \
|
||||
--data "{\"event_type\": \"build-client-package\", \"client_payload\": {\"source\": \"llama-stack-nightly\", \"version\": \"${{ steps.version.outputs.version }}\"}}"
|
||||
- name: Trigger llama-models workflow
|
||||
uses: peter-evans/repository-dispatch@v2
|
||||
with:
|
||||
token: ${{ secrets.PAT_TOKEN }}
|
||||
repository: meta-llama/llama-models
|
||||
event-type: build-models-package
|
||||
client-payload: '{"source": "llama-stack-nightly", "version": "${{ steps.version.outputs.version }}"}'
|
||||
run: |
|
||||
curl -X POST https://api.github.com/repos/meta-llama/llama-models/dispatches \
|
||||
-H 'Accept: application/vnd.github.everest-preview+json' \
|
||||
-H "authorization: Bearer ${{ secrets.PAT_TOKEN }}" \
|
||||
--data "{\"event_type\": \"build-models-package\", \"client_payload\": {\"source\": \"llama-stack-nightly\", \"version\": \"${{ steps.version.outputs.version }}\"}}"
|
||||
outputs:
|
||||
version: ${{ steps.version.outputs.version }}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue