Skip to content

Commit cd4f802

Browse files
Create tmp.yml
1 parent fd02032 commit cd4f802

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/tmp.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Trigger Update
2+
3+
on:
4+
workflow_dispatch: # This allows manual triggering from GitHub Actions UI
5+
6+
env:
7+
OWNER_NAME: MahBoiDeveloper
8+
REPO_NAME: TwistedInsurrectionUpdatedClient
9+
WORKFLOW_FILE: UpdateClientBinaries.yml
10+
TARGET_BRANCH: main
11+
12+
jobs:
13+
trigger-update-in-configs:
14+
runs-on: windows-latest
15+
steps:
16+
- name: Trigger GitHub API to update binaries
17+
env:
18+
GH_TOKEN: ${{ github.token }}
19+
run: |
20+
gh api --method POST -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" /repos/${{ env.OWNER_NAME }}/${{ env.REPO_NAME }}/actions/workflows/${{ env.WORKFLOW_FILE }}/dispatches -f 'ref=${{ env.TARGET_BRANCH }}'

0 commit comments

Comments
 (0)