From 67d5376eabbd137c9372ae2e5629984a6e717e4c Mon Sep 17 00:00:00 2001 From: David Cermak Date: Mon, 7 Oct 2024 10:25:14 +0200 Subject: [PATCH] fix(ci): Publish only if all tests pass --- .github/workflows/build.yml | 2 +- .github/workflows/publish.yml | 9 ++++++--- .github/workflows/smoke_compat.yml | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 686354a..5b7a59d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: "esp_wifi_remote: build-tests" +name: "Build" on: push: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 102104c..9da0a71 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,12 +1,15 @@ name: Publish esp-wifi-remote on: - push: - branches: - - main + workflow_run: + workflows: ["Build", "Compat checks"] + branches: [main] + types: + - completed jobs: publish: + if: ${{ github.event.workflow_run.conclusion == 'success' }} name: Publishes Tag, Release, and Uploads Component needs: build_idf_examples_with_wifi_remote diff --git a/.github/workflows/smoke_compat.yml b/.github/workflows/smoke_compat.yml index 81c251f..696713b 100644 --- a/.github/workflows/smoke_compat.yml +++ b/.github/workflows/smoke_compat.yml @@ -1,4 +1,4 @@ -name: "esp_wifi_remote: build-tests" +name: "Compat checks" on: push: