Skip to content

Commit

Permalink
Add git pull to checkouts
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkoBarisic committed Dec 4, 2023
1 parent 2035c47 commit fd70469
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 22 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/daily-builds-amd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ env:
TARGET_OS: "debian-11"
TOOLCHAIN_VERSION: ${{ github.events.inputs.toolchain_version || 'v4' }}
MG_PACKAGE_PATH: "memgraph_debian-11.deb"
MEMGRAPH_IMAGE: "memgraph/memgraph:${{ github.run_id }}"
MEMGRAPH_TAR: "memgraph_amd64.tar.gz"
MAGE_IMAGE: "memgraph/memgraph-mage:${{ github.run_id }}"
MAGE_TAR: "mage_amd64.tar.gz"
MAGE_NO_ML_IMAGE: "memgraph/memgraph-mage:${{ github.run_id }}-no-ml"
Expand Down Expand Up @@ -111,8 +113,8 @@ jobs:

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

- name: "Checkout correct versions in submodules"
run: |
cd mage && git checkout ${{ env.MAGE_TAG }}
cd cpp/memgraph && git checkout ${{ env.MEMGRAPH_TAG }}
cd mage && git pull && git checkout ${{ env.MAGE_TAG }}
cd cpp/memgraph && git pull && git checkout ${{ env.MEMGRAPH_TAG }}
#NOTE: Remove this step before merge
- name: "Move no ML files into mage directory"
Expand Down Expand Up @@ -191,9 +193,7 @@ jobs:

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

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

- name: "Checkout correct versions in submodules"
run: |
cd lab && git checkout ${{ env.LAB_TAG }}
cd lab && git pull && git checkout ${{ env.LAB_TAG }}
- name: "Download memgraph package"
uses: actions/download-artifact@v3
Expand Down
20 changes: 9 additions & 11 deletions .github/workflows/daily-builds-arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ env:
TARGET_OS: "debian-11-arm"
TOOLCHAIN_VERSION: ${{ github.events.inputs.toolchain_version || 'v4' }}
MG_PACKAGE_PATH: "memgraph_debian-11-arm.deb"
MEMGRAPH_IMAGE: "memgraph/memgraph:${{ github.run_id }}"
MEMGRAPH_TAR: "memgraph_amd64.tar.gz"
MAGE_IMAGE: "memgraph/memgraph-mage:${{ github.run_id }}"
MAGE_TAR: "mage_arm64.tar.gz"
MAGE_NO_ML_IMAGE: "memgraph/memgraph-mage:${{ github.run_id }}-no-ml"
Expand Down Expand Up @@ -114,8 +116,8 @@ jobs:

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

- name: "Checkout correct versions in submodules"
run: |
cd mage && git checkout ${{ env.MAGE_TAG }}
cd cpp/memgraph && git checkout ${{ env.MEMGRAPH_TAG }}
cd mage && git pull && git checkout ${{ env.MAGE_TAG }}
cd cpp/memgraph && git pull && git checkout ${{ env.MEMGRAPH_TAG }}
#NOTE: Remove this step before merge
- name: "Move no ML files into mage directory"
Expand Down Expand Up @@ -200,9 +202,7 @@ jobs:

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

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

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

0 comments on commit fd70469

Please sign in to comment.