Skip to content

Commit

Permalink
Add fetch before checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkoBarisic committed Dec 27, 2023
1 parent 810e2bf commit 320b6e1
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/daily-builds-amd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ jobs:

- name: "Checkout correct versions in submodules"
run: |
cd mage/cpp/memgraph && git checkout ${{ env.MEMGRAPH_TAG }} && git pull origin ${{ env.MEMGRAPH_TAG }}
cd mage/cpp/memgraph && git fetch --all && git checkout ${{ env.MEMGRAPH_TAG }} && git pull origin ${{ env.MEMGRAPH_TAG }}
- name: "Download memgraph package"
uses: actions/download-artifact@v3
Expand Down Expand Up @@ -157,8 +157,8 @@ jobs:

- name: "Checkout correct versions in submodules"
run: |
cd mage && git checkout ${{ env.MAGE_TAG }} && git pull origin ${{ env.MAGE_TAG }}
cd cpp/memgraph && git checkout ${{ env.MEMGRAPH_TAG }} && git pull origin ${{ env.MEMGRAPH_TAG }}
cd mage && git fetch --all && git checkout ${{ env.MAGE_TAG }} && git pull origin ${{ env.MAGE_TAG }}
cd cpp/memgraph && git fetch --all && git checkout ${{ env.MEMGRAPH_TAG }} && git pull origin ${{ env.MEMGRAPH_TAG }}
- name: "Download memgraph package"
uses: actions/download-artifact@v3
Expand Down Expand Up @@ -196,8 +196,8 @@ jobs:

- name: "Checkout correct versions in submodules"
run: |
cd mage && git checkout ${{ env.MAGE_TAG }} && git pull origin ${{ env.MAGE_TAG }}
cd cpp/memgraph && git checkout ${{ env.MEMGRAPH_TAG }} && git pull origin ${{ env.MEMGRAPH_TAG }}
cd mage && git fetch --all && git checkout ${{ env.MAGE_TAG }} && git pull origin ${{ env.MAGE_TAG }}
cd cpp/memgraph && git fetch --all && git checkout ${{ env.MEMGRAPH_TAG }} && git pull origin ${{ env.MEMGRAPH_TAG }}
- name: "Download memgraph package"
uses: actions/download-artifact@v3
Expand Down Expand Up @@ -237,9 +237,9 @@ jobs:

- name: "Checkout correct versions in submodules"
run: |
cd lab && git checkout ${{ env.LAB_TAG }} && git pull origin ${{ env.LAB_TAG }}
cd ../mage && git checkout ${{ env.MAGE_TAG }} && git pull origin ${{ env.MAGE_TAG }}
cd cpp/memgraph && git checkout ${{ env.MEMGRAPH_TAG }} && git pull origin ${{ env.MEMGRAPH_TAG }}
cd lab && git fetch --all && git checkout ${{ env.LAB_TAG }} && git pull origin ${{ env.LAB_TAG }}
cd ../mage && git fetch --all && git checkout ${{ env.MAGE_TAG }} && git pull origin ${{ env.MAGE_TAG }}
cd cpp/memgraph && git fetch --all && git checkout ${{ env.MEMGRAPH_TAG }} && git pull origin ${{ env.MEMGRAPH_TAG }}
- name: "Download memgraph package"
uses: actions/download-artifact@v3
Expand Down Expand Up @@ -282,9 +282,9 @@ jobs:

- name: "Checkout correct versions in submodules"
run: |
cd lab && git checkout ${{ env.LAB_TAG }} && git pull origin ${{ env.LAB_TAG }}
cd ../mage && git checkout ${{ env.MAGE_TAG }} && git pull origin ${{ env.MAGE_TAG }}
cd cpp/memgraph && git checkout ${{ env.MEMGRAPH_TAG }} && git pull origin ${{ env.MEMGRAPH_TAG }}
cd lab && git fetch --all && git checkout ${{ env.LAB_TAG }} && git pull origin ${{ env.LAB_TAG }}
cd ../mage && git fetch --all && git checkout ${{ env.MAGE_TAG }} && git pull origin ${{ env.MAGE_TAG }}
cd cpp/memgraph && git fetch --all && git checkout ${{ env.MEMGRAPH_TAG }} && git pull origin ${{ env.MEMGRAPH_TAG }}
- name: "Download memgraph package"
uses: actions/download-artifact@v3
Expand Down Expand Up @@ -329,7 +329,7 @@ jobs:

- name: "Checkout correct versions in submodules"
run: |
cd lab && git checkout ${{ env.LAB_TAG }} && git pull origin ${{ env.LAB_TAG }}
cd lab && git fetch --all && git checkout ${{ env.LAB_TAG }} && git pull origin ${{ env.LAB_TAG }}
- name: "Download memgraph package"
uses: actions/download-artifact@v3
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/daily-builds-arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ on:
env:
TARGET_ARCH: "arm64"
LAB_TAG: ${{ github.event.inputs.lab_tag || 'dev' }}
MAGE_TAG: ${{ github.event.inputs.mage_tag || 'main' }}
MAGE_TAG: ${{ github.event.inputs.mage_tag || 'add-k-shortest-path' }}
MEMGRAPH_TAG: ${{ github.event.inputs.memgraph_tag || 'master' }}
TARGET_OS: "debian-11-arm"
TOOLCHAIN_VERSION: ${{ github.events.inputs.toolchain_version || 'v4' }}
Expand Down Expand Up @@ -119,7 +119,7 @@ jobs:

- name: "Checkout correct versions in submodules"
run: |
cd mage/cpp/memgraph && git checkout ${{ env.MEMGRAPH_TAG }} && git pull origin ${{ env.MEMGRAPH_TAG }}
cd mage/cpp/memgraph && git fetch --all && git checkout ${{ env.MEMGRAPH_TAG }} && git pull origin ${{ env.MEMGRAPH_TAG }}
- name: "Download memgraph package"
uses: actions/download-artifact@v3
Expand Down Expand Up @@ -160,8 +160,8 @@ jobs:

- name: "Checkout correct versions in submodules"
run: |
cd mage && git checkout ${{ env.MAGE_TAG }} && git pull origin ${{ env.MAGE_TAG }}
cd cpp/memgraph && git checkout ${{ env.MEMGRAPH_TAG }} && git pull origin ${{ env.MEMGRAPH_TAG }}
cd mage && git fetch --all && git checkout ${{ env.MAGE_TAG }} && git pull origin ${{ env.MAGE_TAG }}
cd cpp/memgraph && git fetch --all && git checkout ${{ env.MEMGRAPH_TAG }} && git pull origin ${{ env.MEMGRAPH_TAG }}
- name: "Download memgraph package"
uses: actions/download-artifact@v3
Expand Down Expand Up @@ -202,8 +202,8 @@ jobs:

- name: "Checkout correct versions in submodules"
run: |
cd mage && git checkout ${{ env.MAGE_TAG }} && git pull origin ${{ env.MAGE_TAG }}
cd cpp/memgraph && git checkout ${{ env.MEMGRAPH_TAG }} && git pull origin ${{ env.MEMGRAPH_TAG }}
cd mage && git fetch --all && git checkout ${{ env.MAGE_TAG }} && git pull origin ${{ env.MAGE_TAG }}
cd cpp/memgraph && git fetch --all && git checkout ${{ env.MEMGRAPH_TAG }} && git pull origin ${{ env.MEMGRAPH_TAG }}
- name: "Download memgraph package"
uses: actions/download-artifact@v3
Expand Down Expand Up @@ -246,9 +246,9 @@ jobs:

- name: "Checkout correct versions in submodules"
run: |
cd lab && git checkout ${{ env.LAB_TAG }} && git pull origin ${{ env.LAB_TAG }}
cd ../mage && git checkout ${{ env.MAGE_TAG }} && git pull origin ${{ env.MAGE_TAG }}
cd cpp/memgraph && git checkout ${{ env.MEMGRAPH_TAG }} && git pull origin ${{ env.MEMGRAPH_TAG }}
cd lab && git fetch --all && git checkout ${{ env.LAB_TAG }} && git pull origin ${{ env.LAB_TAG }}
cd ../mage && git fetch --all && git checkout ${{ env.MAGE_TAG }} && git pull origin ${{ env.MAGE_TAG }}
cd cpp/memgraph && git fetch --all && git checkout ${{ env.MEMGRAPH_TAG }} && git pull origin ${{ env.MEMGRAPH_TAG }}
- name: "Download memgraph package"
uses: actions/download-artifact@v3
Expand Down Expand Up @@ -294,9 +294,9 @@ jobs:

- name: "Checkout correct versions in submodules"
run: |
cd lab && git checkout ${{ env.LAB_TAG }} && git pull origin ${{ env.LAB_TAG }}
cd ../mage && git checkout ${{ env.MAGE_TAG }} && git pull origin ${{ env.MAGE_TAG }}
cd cpp/memgraph && git checkout ${{ env.MEMGRAPH_TAG }} && git pull origin ${{ env.MEMGRAPH_TAG }}
cd lab && git fetch --all && git checkout ${{ env.LAB_TAG }} && git pull origin ${{ env.LAB_TAG }}
cd ../mage && git fetch --all && git checkout ${{ env.MAGE_TAG }} && git pull origin ${{ env.MAGE_TAG }}
cd cpp/memgraph && git fetch --all && git checkout ${{ env.MEMGRAPH_TAG }} && git pull origin ${{ env.MEMGRAPH_TAG }}
- name: "Download memgraph package"
uses: actions/download-artifact@v3
Expand Down Expand Up @@ -344,7 +344,7 @@ jobs:

- name: "Checkout correct versions in submodules"
run: |
cd lab && git checkout ${{ env.LAB_TAG }} && git pull origin ${{ env.LAB_TAG }}
cd lab && git fetch --all && git checkout ${{ env.LAB_TAG }} && git pull origin ${{ env.LAB_TAG }}
- name: "Download memgraph package"
uses: actions/download-artifact@v3
Expand Down

0 comments on commit 320b6e1

Please sign in to comment.