build: move nightly build schedule to separate workflow (#10000)
This allows users to easily disable nightly builds in their forks, simply by disabling the build-nightly action. ### Testing I tested it in my fork, and it works.
This commit is contained in:
@@ -0,0 +1,18 @@
|
|||||||
|
name: Build Syncthing (Nightly)
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
# Run nightly build at 05:00 UTC
|
||||||
|
- cron: '00 05 * * *'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
packages: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-syncthing:
|
||||||
|
uses: ./.github/workflows/build-syncthing.yaml
|
||||||
|
# if we only want nightlies to run for specific users:
|
||||||
|
# if: contains(fromJSON('["syncthing", "calmh"]'), github.repository_owner)
|
||||||
|
secrets: inherit
|
||||||
@@ -3,9 +3,7 @@ name: Build Syncthing
|
|||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
schedule:
|
workflow_call:
|
||||||
# Run nightly build at 05:00 UTC
|
|
||||||
- cron: '00 05 * * *'
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user