build: only run the periodic build jobs in the syncthing org (#10675)
This commit is contained in:
@@ -19,7 +19,7 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
docker-syncthing:
|
docker-syncthing:
|
||||||
name: Build and push Docker images
|
name: Build and push Docker images
|
||||||
if: github.repository == 'syncthing/syncthing'
|
if: github.repository_owner == 'syncthing'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment: docker
|
environment: docker
|
||||||
strategy:
|
strategy:
|
||||||
|
|||||||
@@ -1,21 +0,0 @@
|
|||||||
name: Build Syncthing (Nightly)
|
|
||||||
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
# Run nightly build at 05:00 UTC
|
|
||||||
- cron: '00 05 * * *'
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
packages: write
|
|
||||||
artifact-metadata: write
|
|
||||||
attestations: write
|
|
||||||
id-token: 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
|
|
||||||
@@ -8,8 +8,9 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
run-recommendation:
|
run-recommendation:
|
||||||
runs-on: ubuntu-latest
|
|
||||||
name: Check for a recommendation
|
name: Check for a recommendation
|
||||||
|
if: github.repository_owner == 'syncthing'
|
||||||
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: docker://ghcr.io/calmh/github-org-members:latest
|
- uses: docker://ghcr.io/calmh/github-org-members:latest
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ jobs:
|
|||||||
|
|
||||||
labels:
|
labels:
|
||||||
name: Set labels
|
name: Set labels
|
||||||
|
if: github.repository_owner == 'syncthing'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: srvaroa/labeler@9c29ad1ef33d169f9ef33c52722faf47a566bcf3 # v1
|
- uses: srvaroa/labeler@9c29ad1ef33d169f9ef33c52722faf47a566bcf3 # v1
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
create-release-tag:
|
create-release-tag:
|
||||||
name: Create release tag
|
name: Create release tag
|
||||||
|
if: github.repository_owner == 'syncthing'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment: release
|
environment: release
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
trigger-nightly:
|
trigger-nightly:
|
||||||
|
name: Push to release-nightly to trigger build
|
||||||
if: github.repository_owner == 'syncthing'
|
if: github.repository_owner == 'syncthing'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Push to release-nightly to trigger build
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
|
|||||||
Reference in New Issue
Block a user