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.
19 lines
420 B
YAML
19 lines
420 B
YAML
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
|