From 9b8cf46f547e051bbd72889dca911426903971fa Mon Sep 17 00:00:00 2001 From: jojomatik Date: Mon, 7 Mar 2022 18:39:05 +0100 Subject: [PATCH] ci: sync `v1` also if `semantic-release` is skipped --- .github/workflows/publish.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5ca1962..a0cfff4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -54,7 +54,10 @@ jobs: git_committer_email: ${{ secrets.BUMP_GIT_EMAIL }} github_token: ${{ secrets.GH_TOKEN }} sync_main_to_v1: - if: ${{ startsWith(github.ref, 'refs/tags/v1') && !contains(github.ref, 'beta') }} + if: | + always() && + (needs.semantic-release.result == 'success' || needs.semantic-release.result == 'skipped') && + ${{ startsWith(github.ref, 'refs/tags/v1') && !contains(github.ref, 'beta') }} name: Sync branch `main` to `v1` (fast-forward enabled) runs-on: ubuntu-latest needs: