File tree Expand file tree Collapse file tree 2 files changed +29
-2
lines changed
Expand file tree Collapse file tree 2 files changed +29
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Scheduled Trigger for 1.4
22
33on :
44 schedule :
5- - cron : ' 4 20 * * * ' # Runs at 12:00 UTC every day
5+ - cron : ' 51 20 * * 3 ' # Runs weekly on Wednesday at 20:51 UTC
66 workflow_dispatch : # Allows manual trigger
77
88jobs :
2222 run : |
2323 echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token
2424
25- - name : Trigger Workflow on my-branch
25+ - name : Trigger Workflow on v1.4
2626 run : |
2727 gh workflow run MainDistributionPipeline.yml --ref v1.4
Original file line number Diff line number Diff line change 1+ name : Scheduled Trigger for 1.5
2+
3+ on :
4+ schedule :
5+ - cron : ' 19 21 * * *' # Runs daily at 21:19 UTC
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 v1.5
26+ run : |
27+ gh workflow run MainDistributionPipeline.yml --ref v1.5
You can’t perform that action at this time.
0 commit comments