Skip to content

Commit 9611f72

Browse files
committed
fix: add scheduled workflow for 1.2
1 parent 0985403 commit 9611f72

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/schedule-1.2.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Scheduled Trigger for 1.2
2+
3+
on:
4+
schedule:
5+
- cron: '0 12 * * *' # Runs at 12:00 UTC every day
6+
workflow_dispatch: # Allows manual trigger
7+
8+
jobs:
9+
trigger:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
actions: write # Allow triggering workflows
13+
steps:
14+
- name: Checkout repository # Required for gh to work
15+
uses: actions/checkout@v4
16+
17+
- name: Install GitHub CLI
18+
run: |
19+
sudo apt update && sudo apt install gh -y
20+
21+
- name: Authenticate GH CLI
22+
run: |
23+
echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token
24+
25+
- name: Trigger Workflow on my-branch
26+
run: |
27+
gh workflow run MainDistributionPipeline.yml --ref v1.2

0 commit comments

Comments
 (0)