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=""

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!CAUTION]  
> If you modify the content in this section, you are likely to disrupt
the CI result for your PR.

<!-- end of auto-generated comment: Cypress test results  -->


## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [x] No
This commit is contained in:
Sagar Khalasi 2024-11-27 16:36:32 +05:30 committed by GitHub
parent 0b1069663e
commit 62724e98f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 ../../../../../