From 1b766d35099db7f67878b809891d7f4a3dd65fe4 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Mon, 12 Aug 2024 17:39:17 +0300 Subject: fix(main-branch): Workaround logic for switching between previous and current repo version --- .github/workflows/main-branch.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main-branch.yml b/.github/workflows/main-branch.yml index 343b731..4589123 100644 --- a/.github/workflows/main-branch.yml +++ b/.github/workflows/main-branch.yml @@ -47,7 +47,8 @@ jobs: - name: Checkout previous uses: actions/checkout@v2 with: - ref: $${{ github.event.before }} + fetch-depth: 2 + - run: git checkout HEAD^ - name: Minikube deploy run: | kubectl apply -f kubernetes/ @@ -57,7 +58,7 @@ jobs: minikube service list - name: Checkout current - uses: actions/checkout@v4 + run: git checkout main - name: Minikube update run: | kubectl apply -f kubernetes/ -- cgit v1.2.3