diff options
| author | Syndamia <kamen@syndamia.com> | 2024-08-12 17:39:17 +0300 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2024-08-12 17:39:17 +0300 |
| commit | 1b766d35099db7f67878b809891d7f4a3dd65fe4 (patch) | |
| tree | f5bb10e177f669eebc215bd90a2f942ac1376b4f /.github/workflows | |
| parent | 16183aa4fce8cafc586216c36195619467766de9 (diff) | |
| download | pico-web-1b766d35099db7f67878b809891d7f4a3dd65fe4.tar pico-web-1b766d35099db7f67878b809891d7f4a3dd65fe4.tar.gz pico-web-1b766d35099db7f67878b809891d7f4a3dd65fe4.zip | |
fix(main-branch): Workaround logic for switching between previous and current repo version
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/main-branch.yml | 5 |
1 files 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/ |
