Skip to content

Commit 372dcc0

Browse files
committed
ci: change trigger from scheduled cron to PR labeled events with beta label condition
1 parent 4158d7c commit 372dcc0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/beta.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@ name: beta
22

33
on:
44
workflow_dispatch:
5-
schedule:
6-
- cron: "0 * * * *"
5+
pull_request:
6+
types: [labeled]
77

88
jobs:
99
sync:
10+
if: github.event_name == 'workflow_dispatch' || github.event.label.name == 'beta'
1011
runs-on: blacksmith-4vcpu-ubuntu-2404
1112
permissions:
1213
contents: write
14+
pull-requests: write
1315
steps:
1416
- name: Checkout repository
1517
uses: actions/checkout@v4
@@ -29,5 +31,4 @@ jobs:
2931
- name: Sync beta branch
3032
env:
3133
GH_TOKEN: ${{ steps.setup-git-committer.outputs.token }}
32-
DISCORD_ISSUES_WEBHOOK_URL: ${{ secrets.DISCORD_ISSUES_WEBHOOK_URL }}
3334
run: bun script/beta.ts

0 commit comments

Comments
 (0)