From 7cf766dc5d86c3a9ebbca22d3cfa297e2b3a3ab8 Mon Sep 17 00:00:00 2001 From: zerg-su <65297783+zerg-su@users.noreply.github.com> Date: Wed, 18 Sep 2024 11:10:49 +0300 Subject: [PATCH] get master fix (#2214) Co-authored-by: Kirill Azovtsev --- .github/workflows/test.yml | 9 ++++++--- .github/workflows/zombie-tests.yaml | 3 ++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b403ac6b6a..65b09965e8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -220,7 +220,8 @@ jobs: fetch-depth: 0 - name: "Get master branch" - run: git fetch origin master:master + if: github.ref != 'refs/heads/master' + run: git fetch origin master:master || true - name: "Authenticate with Google Cloud" uses: 'google-github-actions/auth@v2' @@ -303,7 +304,8 @@ jobs: fetch-depth: 0 - name: "Get master branch" - run: git fetch origin master:master + if: github.ref != 'refs/heads/master' + run: git fetch origin master:master || true - name: "Authenticate with Google Cloud" uses: 'google-github-actions/auth@v2' @@ -472,7 +474,8 @@ jobs: fetch-depth: 0 - name: "Get master branch" - run: git fetch origin master:master + if: github.ref != 'refs/heads/master' + run: git fetch origin master:master || true # - name: Create and enable swap # run: | diff --git a/.github/workflows/zombie-tests.yaml b/.github/workflows/zombie-tests.yaml index 6910f94803..06f30ecdb3 100644 --- a/.github/workflows/zombie-tests.yaml +++ b/.github/workflows/zombie-tests.yaml @@ -58,7 +58,8 @@ jobs: fetch-depth: 0 - name: "Get master branch" - run: git fetch origin master:master + if: github.ref != 'refs/heads/master' + run: git fetch origin master:master || true - name: "Authenticate with Google Cloud" uses: 'google-github-actions/auth@v2'