Skip to content

Commit 8edc0ba

Browse files
Update publish.yml
1 parent 6b5cd9c commit 8edc0ba

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/publish.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,18 @@ jobs:
4343
title: ${{ env.VERSION }}
4444
env:
4545
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
47+
- name: Trigger Workflow in future secret project :O
48+
run: |
49+
# Set the required variables
50+
repo_name=${{ secrets.TARGET_REPO }}
51+
event_type="publish"
52+
kpaper_version=${{ env.VERSION }}
53+
54+
curl -L \
55+
-X POST \
56+
-H "Accept: application/vnd.github+json" \
57+
-H "Authorization: Bearer ${{ secrets.PAT }}" \
58+
-H "X-GitHub-Api-Version: 2022-11-28" \
59+
https://api.github.com/repos/ModLabsCC/$repo_name/actions/workflows/publish/dispatches \
60+
-d "{\"ref\": \"main\", \"inputs\": {\"kpaper_version\": \"$kpaper_version\"}}"

0 commit comments

Comments
 (0)