ci: change trigger from scheduled cron to PR labeled events with beta label condition
This commit is contained in:
7
.github/workflows/beta.yml
vendored
7
.github/workflows/beta.yml
vendored
@@ -2,14 +2,16 @@ name: beta
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
schedule:
|
pull_request:
|
||||||
- cron: "0 * * * *"
|
types: [labeled]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
sync:
|
sync:
|
||||||
|
if: github.event_name == 'workflow_dispatch' || github.event.label.name == 'beta'
|
||||||
runs-on: blacksmith-4vcpu-ubuntu-2404
|
runs-on: blacksmith-4vcpu-ubuntu-2404
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -29,5 +31,4 @@ jobs:
|
|||||||
- name: Sync beta branch
|
- name: Sync beta branch
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ steps.setup-git-committer.outputs.token }}
|
GH_TOKEN: ${{ steps.setup-git-committer.outputs.token }}
|
||||||
DISCORD_ISSUES_WEBHOOK_URL: ${{ secrets.DISCORD_ISSUES_WEBHOOK_URL }}
|
|
||||||
run: bun script/beta.ts
|
run: bun script/beta.ts
|
||||||
|
|||||||
Reference in New Issue
Block a user