8989 IS_NON_COMMIT_ARG : ${{ fromJSON(fromJSON(inputs.client_payload)).isNonCommitEvent }}
9090 ENABLE_CACHE_ARG : ${{ env.ENABLE_CACHE }}
9191 RUN_ID_ARG : ${{ fromJSON(fromJSON(inputs.client_payload)).artifactRunId }}
92+ CACHE_DOWNLOAD_FAILED_ARG : ${{ env.CACHE_DOWNLOAD_FAILED }}
9293 with :
9394 script : |
9495 require('${{ github.action_path }}/scripts/get-condition-vars.js')(core);
@@ -126,7 +127,7 @@ runs:
126127 script : require('${{ github.action_path }}/scripts/check-cache-download-status')(core);
127128
128129 - name : Checkout Pull Request branches history
129- if : ${{ env.SKIP_GIT_CLONE == 'false' || env.CACHE_DOWNLOAD_FAILED == 'true' }}
130+ if : ${{ env.SHOULD_CHECKOUT == 'true' }}
130131 shell : bash
131132 run : |
132133 ALL=2147483647
@@ -139,27 +140,26 @@ runs:
139140 git checkout $'${{ steps.safe-strings.outputs.head_ref }}'
140141
141142 - name : Create cm folder
142- if : ${{ env.SKIP_GIT_CLONE == 'false' || env.CACHE_DOWNLOAD_FAILED == 'true' }}
143+ if : ${{ env.SHOULD_CHECKOUT == 'true' }}
143144 shell : bash
144145 run : cd gitstream && mkdir cm
145146
146147 - name : Checkout cm repo
147148 uses : actions/checkout@v4
148- if : ${{ fromJSON(fromJSON(inputs.client_payload)).hasCmRepo == true && ( env.SKIP_GIT_CLONE == 'false' || env.CACHE_DOWNLOAD_FAILED == ' true') }}
149+ if : ${{ fromJSON(fromJSON(inputs.client_payload)).hasCmRepo == true && env.SHOULD_CHECKOUT == 'true'}}
149150 with :
150151 repository : ' ${{ fromJSON(fromJSON(inputs.client_payload)).owner }}/${{ fromJSON(fromJSON(inputs.client_payload)).cmRepo }}'
151152 ref : ${{ fromJSON(fromJSON(inputs.client_payload)).cmRepoRef }}
152153 path : gitstream/cm/
153154
154155 - name : Checkout cm org
155156 uses : actions/checkout@v4
156- if : ${{ fromJSON(fromJSON(inputs.client_payload)).hasCmOrg == true && ( env.SKIP_GIT_CLONE == 'false' || env.CACHE_DOWNLOAD_FAILED == ' true') }}
157+ if : ${{ fromJSON(fromJSON(inputs.client_payload)).hasCmOrg == true && env.SHOULD_CHECKOUT == 'true'}}
157158 with :
158159 repository : ' cm/cm'
159160 ref : ${{ fromJSON(fromJSON(inputs.client_payload)).cmOrgRef }}
160161 path : gitstream/cm-org/
161162
162-
163163 - name : Volume folder
164164 shell : bash
165165 run : mv gitstream code
0 commit comments