Run scheduled workflows only in the home-assistant organization (#64085)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
parent
09297520c0
commit
bb671830a6
4 changed files with 12 additions and 2 deletions
7
.github/workflows/builder.yml
vendored
7
.github/workflows/builder.yml
vendored
|
@ -15,6 +15,7 @@ env:
|
|||
jobs:
|
||||
init:
|
||||
name: Initialize build
|
||||
if: github.repository_owner == 'home-assistant'
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
architectures: ${{ steps.info.outputs.architectures }}
|
||||
|
@ -62,7 +63,7 @@ jobs:
|
|||
name: Build PyPi package
|
||||
needs: init
|
||||
runs-on: ubuntu-latest
|
||||
if: needs.init.outputs.publish == 'true'
|
||||
if: github.repository_owner == 'home-assistant' && needs.init.outputs.publish == 'true'
|
||||
steps:
|
||||
- name: Checkout the repository
|
||||
uses: actions/checkout@v2.4.0
|
||||
|
@ -88,6 +89,7 @@ jobs:
|
|||
|
||||
build_base:
|
||||
name: Build ${{ matrix.arch }} base core image
|
||||
if: github.repository_owner == 'home-assistant'
|
||||
needs: init
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
|
@ -143,6 +145,7 @@ jobs:
|
|||
|
||||
build_machine:
|
||||
name: Build ${{ matrix.machine }} machine core image
|
||||
if: github.repository_owner == 'home-assistant'
|
||||
needs: ["init", "build_base"]
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
|
@ -206,6 +209,7 @@ jobs:
|
|||
|
||||
publish_ha:
|
||||
name: Publish version files
|
||||
if: github.repository_owner == 'home-assistant'
|
||||
needs: ["init", "build_machine"]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
@ -238,6 +242,7 @@ jobs:
|
|||
|
||||
publish_container:
|
||||
name: Publish meta container
|
||||
if: github.repository_owner == 'home-assistant'
|
||||
needs: ["init", "build_base"]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
|
1
.github/workflows/lock.yml
vendored
1
.github/workflows/lock.yml
vendored
|
@ -7,6 +7,7 @@ on:
|
|||
|
||||
jobs:
|
||||
lock:
|
||||
if: github.repository_owner == 'home-assistant'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: dessant/lock-threads@v3
|
||||
|
|
3
.github/workflows/translations.yaml
vendored
3
.github/workflows/translations.yaml
vendored
|
@ -17,6 +17,7 @@ env:
|
|||
jobs:
|
||||
upload:
|
||||
name: Upload
|
||||
if: github.repository_owner == 'home-assistant'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout the repository
|
||||
|
@ -35,7 +36,7 @@ jobs:
|
|||
download:
|
||||
name: Download
|
||||
needs: upload
|
||||
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
|
||||
if: github.repository_owner == 'home-assistant' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout the repository
|
||||
|
|
3
.github/workflows/wheels.yml
vendored
3
.github/workflows/wheels.yml
vendored
|
@ -16,6 +16,7 @@ on:
|
|||
jobs:
|
||||
init:
|
||||
name: Initialize wheels builder
|
||||
if: github.repository_owner == 'home-assistant'
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
architectures: ${{ steps.info.outputs.architectures }}
|
||||
|
@ -62,6 +63,7 @@ jobs:
|
|||
|
||||
core:
|
||||
name: Build wheels with ${{ matrix.tag }} (${{ matrix.arch }}) for core
|
||||
if: github.repository_owner == 'home-assistant'
|
||||
needs: init
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
|
@ -102,6 +104,7 @@ jobs:
|
|||
|
||||
integrations:
|
||||
name: Build wheels with ${{ matrix.tag }} (${{ matrix.arch }}) for integrations
|
||||
if: github.repository_owner == 'home-assistant'
|
||||
needs: init
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
|
|
Loading…
Add table
Reference in a new issue