mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 15:12:06 +00:00 
			
		
		
		
	Don't run deploy job when repository is not esphome/esphome (#1157)
This commit is contained in:
		
							
								
								
									
										2
									
								
								.github/workflows/release-dev.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/release-dev.yml
									
									
									
									
										vendored
									
									
								
							| @@ -172,6 +172,7 @@ jobs: | |||||||
|  |  | ||||||
|   deploy-docker: |   deploy-docker: | ||||||
|     name: Build and publish docker containers |     name: Build and publish docker containers | ||||||
|  |     if: github.repository == "esphome/esphome" | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|     needs: [lint-clang-format, lint-clang-tidy, lint-python, test, pytest] |     needs: [lint-clang-format, lint-clang-tidy, lint-python, test, pytest] | ||||||
|     strategy: |     strategy: | ||||||
| @@ -227,6 +228,7 @@ jobs: | |||||||
|  |  | ||||||
|  |  | ||||||
|   deploy-docker-manifest: |   deploy-docker-manifest: | ||||||
|  |     if: github.repository == "esphome/esphome" | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|     needs: [deploy-docker] |     needs: [deploy-docker] | ||||||
|     steps: |     steps: | ||||||
|   | |||||||
							
								
								
									
										3
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							| @@ -170,6 +170,7 @@ jobs: | |||||||
|  |  | ||||||
|   deploy-pypi: |   deploy-pypi: | ||||||
|     name: Build and publish to PyPi |     name: Build and publish to PyPi | ||||||
|  |     if: github.repository == "esphome/esphome" | ||||||
|     needs: [lint-clang-format, lint-clang-tidy, lint-python, test, pytest] |     needs: [lint-clang-format, lint-clang-tidy, lint-python, test, pytest] | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|     steps: |     steps: | ||||||
| @@ -192,6 +193,7 @@ jobs: | |||||||
|  |  | ||||||
|   deploy-docker: |   deploy-docker: | ||||||
|     name: Build and publish docker containers |     name: Build and publish docker containers | ||||||
|  |     if: github.repository == "esphome/esphome" | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|     needs: [lint-clang-format, lint-clang-tidy, lint-python, test, pytest] |     needs: [lint-clang-format, lint-clang-tidy, lint-python, test, pytest] | ||||||
|     strategy: |     strategy: | ||||||
| @@ -255,6 +257,7 @@ jobs: | |||||||
|           docker push "${BUILD_TO}:latest" |           docker push "${BUILD_TO}:latest" | ||||||
|  |  | ||||||
|   deploy-docker-manifest: |   deploy-docker-manifest: | ||||||
|  |     if: github.repository == "esphome/esphome" | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|     needs: [deploy-docker] |     needs: [deploy-docker] | ||||||
|     steps: |     steps: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user