Skip to content

Commit 46be4cf

Browse files
committed
tokne
1 parent c7ac5af commit 46be4cf

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/publish_release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,20 @@ jobs:
8181
echo "change_type=${{ steps.detect_change.outputs.change_type }}" >> $GITHUB_OUTPUT
8282
echo "change_description=" >> $GITHUB_OUTPUT
8383
fi
84+
85+
- name: Generate GitHub App Token
86+
id: app-token
87+
uses: actions/create-github-app-token@v1
88+
with:
89+
app-id: ${{ secrets.CI_BOT_APP_ID }}
90+
private-key: ${{ secrets.CI_BOT_PRIVATE_KEY }}
91+
owner: run-llama
8492

8593
- name: Trigger SDK Update
8694
if: steps.sdk_params.outputs.change_type != 'none' && steps.sdk_params.outputs.change_type != ''
8795
uses: peter-evans/repository-dispatch@v3
8896
with:
89-
token: ${{ secrets.LLAMA_UI_DISPATCH_TOKEN }}
97+
token: ${{ steps.app-token.outputs.token }}
9098
repository: run-llama/llama-ui
9199
event-type: workflows-sdk-update
92100
client-payload: '{"version": "${{ steps.version.outputs.version }}", "openapi_url": "https://github.com/run-llama/workflows-py/releases/download/v${{ steps.version.outputs.version }}/openapi.json", "change_type": "${{ steps.sdk_params.outputs.change_type }}", "change_description": "${{ steps.sdk_params.outputs.change_description }}"}'

0 commit comments

Comments
 (0)