From 62724e98f7e6cae9fcc5b5fbc102df425b68c052 Mon Sep 17 00:00:00 2001 From: Sagar Khalasi Date: Wed, 27 Nov 2024 16:36:32 +0530 Subject: [PATCH] chore: Reverted server cache skip changes (#37779) ## Description > [!TIP] > _Add a TL;DR when the description is longer than 500 words or extremely technical (helps the content, marketing, and DevRel team)._ > > _Please also include relevant motivation and context. List any dependencies that are required for this change. Add links to Notion, Figma or any other documents that might be relevant to the PR._ Fixes #`Issue Number` _or_ Fixes `Issue URL` > [!WARNING] > _If no issue exists, please create an issue first, and check with the maintainers if the issue is valid._ ## Automation /ok-to-test tags="" ### :mag: Cypress test results > [!CAUTION] > If you modify the content in this section, you are likely to disrupt the CI result for your PR. ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [x] No --- .github/workflows/server-build.yml | 34 +++++++++++++++--------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/server-build.yml b/.github/workflows/server-build.yml index 5a9da1df1a..df1c1334cc 100644 --- a/.github/workflows/server-build.yml +++ b/.github/workflows/server-build.yml @@ -100,23 +100,23 @@ jobs: - name: Print the Github event run: echo ${{ github.event_name }} - # - name: Get changed files in the server folder - # id: changed-files-specific - # uses: tj-actions/changed-files@v44 - # with: - # files: "app/server/**" - # write_output_files: true - - - name: Updating the server changed file variable + - name: Get changed files in the server folder id: changed-files-specific - run: echo "any_changed=true" >> "$GITHUB_OUTPUT" + uses: tj-actions/changed-files@v44 + with: + files: "app/server/**" + write_output_files: true - # - name: Run step if any file(s) in the server folder change - # if: steps.changed-files-specific.outputs.any_changed == 'true' - # run: | - # echo "One or more files in the server folder has changed." - # echo "List all the files that have changed:" - # cat "${{ github.workspace }}/.github/outputs/all_changed_files.txt" + # - name: Updating the server changed file variable + # id: changed-files-specific + # run: echo "any_changed=true" >> "$GITHUB_OUTPUT" + + - name: Run step if any file(s) in the server folder change + if: steps.changed-files-specific.outputs.any_changed == 'true' + run: | + echo "One or more files in the server folder has changed." + echo "List all the files that have changed:" + cat "${{ github.workspace }}/.github/outputs/all_changed_files.txt" # In case this is second attempt try restoring status of the prior attempt from cache - name: Restore the previous run result @@ -341,11 +341,11 @@ jobs: git config --global user.email "$gituseremail" git config --global user.name "$gituser" git clone https://$cachetoken@github.com/appsmithorg/cibuildcache.git - git lfs install - git lfs migrate import --everything --yes if [ "$reponame" = "appsmith" ]; then export repodir="CE"; fi if [ "$reponame" = "appsmith-ee" ]; then export repodir="EE"; fi cd cibuildcache/$repodir/release/server + git lfs install + git lfs migrate import --everything --yes git lfs pull ./server.jar mv ./server.jar ../../../../../server.jar cd ../../../../../