From 62aebd6d237a5b3de60360a02e82a5a9f09bd6f0 Mon Sep 17 00:00:00 2001 From: Nikita Fedkin Date: Wed, 2 Oct 2024 08:26:27 +0200 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 740c44c..b8e1236 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,14 +1,14 @@ name: Build Docker Images on: - push: - branches: [ feature/first-bit] - pull_request: - branches: [ feature/first-bit] - workflow_dispatch: + workflow_run: + workflows: ["Pre-build checks"] + types: + - completed jobs: build: + if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest strategy: fail-fast: false @@ -18,6 +18,9 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v3 + with: + # Получаем рефы для pull-реквеста + ref: ${{ github.event.workflow_run.head_branch }} - name: Set up QEMU uses: docker/setup-qemu-action@v2