From 07c74c7d4cecd4e456e63bf87d71b59f55ae8ef1 Mon Sep 17 00:00:00 2001 From: Nodar Ambroladze Date: Wed, 31 Jan 2024 11:55:12 +0100 Subject: [PATCH] Change release workflow trigger condition --- .github/workflows/release-ci.yml | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release-ci.yml b/.github/workflows/release-ci.yml index 29a1732f15..0439b3f420 100644 --- a/.github/workflows/release-ci.yml +++ b/.github/workflows/release-ci.yml @@ -2,13 +2,9 @@ name: Release CI run-name: Release CI triggered from @${{ github.actor }} of ${{ github.head_ref }} on: - workflow_dispatch: - merge_group: - pull_request: - push: - branches: - - master - - develop + release: + types: [created, published] + jobs: build_and_run: runs-on: ubuntu-8 @@ -30,10 +26,3 @@ jobs: path: /tmp/.buildx-cache key: ${{ runner.os }}-buildx-${{ hashFiles('Dockerfile') }} restore-keys: ${{ runner.os }}-buildx- - - - - name: Check PR Label For Release label - if: ${{ !contains(github.event.*.labels.*.name, 'release') }} - run: | - echo "Not a release candidate. Skipping workflow." - exit 0