mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-05 18:22:41 +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
|
name: Publish Python 🐍 distribution 📦 to TestPyPI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch: # Keep manual trigger
|
push
|
||||||
inputs:
|
# workflow_dispatch: # Keep manual trigger
|
||||||
rc_version:
|
# inputs:
|
||||||
description: 'RC version number (e.g., 1, 2, 3)'
|
# rc_version:
|
||||||
required: true
|
# description: 'RC version number (e.g., 1, 2, 3)'
|
||||||
type: string
|
# required: true
|
||||||
schedule:
|
# type: string
|
||||||
- cron: "0 0 * * *" # Run every day at midnight
|
# schedule:
|
||||||
|
# - cron: "0 0 * * *" # Run every day at midnight
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
trigger-client-and-models-build:
|
trigger-client-and-models-build:
|
||||||
|
@ -30,19 +31,17 @@ jobs:
|
||||||
echo "version=.dev$(shuf -i 10000000-99999999 -n 1)" >> $GITHUB_OUTPUT
|
echo "version=.dev$(shuf -i 10000000-99999999 -n 1)" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
- name: Trigger llama-stack-client workflow
|
- name: Trigger llama-stack-client workflow
|
||||||
uses: peter-evans/repository-dispatch@v2
|
run: |
|
||||||
with:
|
curl -X POST https://api.github.com/repos/meta-llama/llama-stack-client-python/dispatches \
|
||||||
token: ${{ secrets.PAT_TOKEN }}
|
-H 'Accept: application/vnd.github.everest-preview+json' \
|
||||||
repository: meta-llama/llama-stack-client-python
|
-H "authorization: Bearer ${{ secrets.PAT_TOKEN }}" \
|
||||||
event-type: build-client-package
|
--data "{\"event_type\": \"build-client-package\", \"client_payload\": {\"source\": \"llama-stack-nightly\", \"version\": \"${{ steps.version.outputs.version }}\"}}"
|
||||||
client-payload: '{"source": "llama-stack-nightly", "version": "${{ steps.version.outputs.version }}"}'
|
|
||||||
- name: Trigger llama-models workflow
|
- name: Trigger llama-models workflow
|
||||||
uses: peter-evans/repository-dispatch@v2
|
run: |
|
||||||
with:
|
curl -X POST https://api.github.com/repos/meta-llama/llama-models/dispatches \
|
||||||
token: ${{ secrets.PAT_TOKEN }}
|
-H 'Accept: application/vnd.github.everest-preview+json' \
|
||||||
repository: meta-llama/llama-models
|
-H "authorization: Bearer ${{ secrets.PAT_TOKEN }}" \
|
||||||
event-type: build-models-package
|
--data "{\"event_type\": \"build-models-package\", \"client_payload\": {\"source\": \"llama-stack-nightly\", \"version\": \"${{ steps.version.outputs.version }}\"}}"
|
||||||
client-payload: '{"source": "llama-stack-nightly", "version": "${{ steps.version.outputs.version }}"}'
|
|
||||||
outputs:
|
outputs:
|
||||||
version: ${{ steps.version.outputs.version }}
|
version: ${{ steps.version.outputs.version }}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue