From ce37b116dd3e428472991122e4f32ed281966dd5 Mon Sep 17 00:00:00 2001 From: Michal <01187288@pw.edu.pl> Date: Sun, 14 Dec 2025 22:44:01 +0100 Subject: [PATCH] ci: fixed bug with skipped step 4 and 5 on push to main --- .github/workflows/integration-tests.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 5b74d38..65ac660 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -28,6 +28,7 @@ jobs: uses: actions/setup-go@v5 with: go-version-file: "./go/go.mod" + cache-dependency-path: "./go/go.sum" check-latest: true - run: go version @@ -109,6 +110,7 @@ jobs: uses: actions/setup-go@v5 with: go-version-file: "./go/go.mod" + cache-dependency-path: "./go/go.sum" check-latest: true - run: go version @@ -140,6 +142,8 @@ jobs: runs-on: ubuntu-latest needs: build-real if: | + always() && + needs.build-real.result == 'success' && github.ref == 'refs/heads/main' && ( github.event_name == 'push' || github.event_name == 'repository_dispatch' @@ -189,7 +193,11 @@ jobs: name: Update Release Branch runs-on: ubuntu-latest needs: [bump-version, build-real] - if: github.ref == 'refs/heads/main' + if: | + always() && + needs.bump-version.result == 'success' && + needs.build-real.result == 'success' && + github.ref == 'refs/heads/main' steps: - name: Checkout repository uses: actions/checkout@v4