Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Fix docker build failure in nighlty #364

Merged
merged 12 commits into from
Jul 8, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
another way
  • Loading branch information
dhuangnm authored and dhuangnm committed Jul 5, 2024
commit 7d9635393827d39e674704841e8c0343a77fcec9
39 changes: 26 additions & 13 deletions .github/workflows/nm-upload-assets-to-gcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,17 +93,30 @@ jobs:
# id: cp-assets
# uses: ./.github/actions/nm-cp-assets/

- name: trigger stratus nm-pypi update workflow
run: |
# Set the required variables
event_type="trigger-workflow"
service=${{ github.event.inputs.target_service }}"
version="${{ github.event.inputs.target_version }}"
# - name: trigger stratus nm-pypi update workflow
# run: |
# # Set the required variables
# event_type="trigger-workflow"
# service=${{ github.event.inputs.target_service }}"
# version="${{ github.event.inputs.target_version }}"

curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.CICD_GITHUB_PAT }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/neuralmagic/stratus/dispatches \
-d "{\"event_type\": \"$event_type\", \"client_payload\": {\"service\": \"$service\", \"version\": \"$version\", \"unit\": false, \"integration\": true}}"
# curl -L \
# -X POST \
# -H "Accept: application/vnd.github+json" \
# -H "Authorization: Bearer ${{ secrets.CICD_GITHUB_PAT }}" \
# -H "X-GitHub-Api-Version: 2022-11-28" \
# https://api.github.com/repos/neuralmagic/stratus/dispatches \
# -d "{\"event_type\": \"$event_type\", \"client_payload\": {\"service\": \"$service\", \"version\": \"$version\", \"unit\": false, \"integration\": true}}"

- name: trigger stratus nm-pypi update workflow
uses: actions/github-script@v6
with:
github-token: ${{ secrets.CICD_GITHUB_PAT }}
script: |
const result = await github.rest.actions.createWorkflowDispatch({
owner: 'neuralmagic',
repo: 'stratus',
workflow_id: 'nm-pypi-update.yml'
ref: 'docker'
})
console.log(result)