Don't run deploy job when repository is not esphome/esphome (#1157)

This commit is contained in:
Jesse Hills 2020-07-16 07:59:11 +12:00 committed by GitHub
parent e962762046
commit dfbf225403
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -172,6 +172,7 @@ jobs:
deploy-docker:
name: Build and publish docker containers
if: github.repository == "esphome/esphome"
runs-on: ubuntu-latest
needs: [lint-clang-format, lint-clang-tidy, lint-python, test, pytest]
strategy:
@ -227,6 +228,7 @@ jobs:
deploy-docker-manifest:
if: github.repository == "esphome/esphome"
runs-on: ubuntu-latest
needs: [deploy-docker]
steps:

View File

@ -170,6 +170,7 @@ jobs:
deploy-pypi:
name: Build and publish to PyPi
if: github.repository == "esphome/esphome"
needs: [lint-clang-format, lint-clang-tidy, lint-python, test, pytest]
runs-on: ubuntu-latest
steps:
@ -192,6 +193,7 @@ jobs:
deploy-docker:
name: Build and publish docker containers
if: github.repository == "esphome/esphome"
runs-on: ubuntu-latest
needs: [lint-clang-format, lint-clang-tidy, lint-python, test, pytest]
strategy:
@ -255,6 +257,7 @@ jobs:
docker push "${BUILD_TO}:latest"
deploy-docker-manifest:
if: github.repository == "esphome/esphome"
runs-on: ubuntu-latest
needs: [deploy-docker]
steps: