|
84 | 84 | - name: Unmerged PR - Fetch head ref of unmerged PR |
85 | 85 | if: ${{ !fromJSON(steps.getPullRequestDetails.outputs.IS_MERGED) }} |
86 | 86 | run: | |
87 | | - if [[ ${{ steps.getPullRequestDetails.outputs.FORKED_REPO_URL }} != '' ]]; then |
88 | | - git remote add pr_remote ${{ steps.getPullRequestDetails.outputs.FORKED_REPO_URL }} |
89 | | - git fetch pr_remote ${{ steps.getPullRequestDetails.outputs.HEAD_COMMIT_SHA }} --no-tags --depth=1 |
90 | | - else |
91 | | - git fetch origin ${{ steps.getPullRequestDetails.outputs.HEAD_COMMIT_SHA }} --no-tags --depth=1 |
92 | | - fi |
| 87 | + git fetch origin ${{ steps.getPullRequestDetails.outputs.HEAD_COMMIT_SHA }} --no-tags --depth=1 |
93 | 88 |
|
94 | 89 | - name: Unmerged PR - Set dummy git credentials before merging |
95 | 90 | if: ${{ !fromJSON(steps.getPullRequestDetails.outputs.IS_MERGED) }} |
|
101 | 96 | if: ${{ !fromJSON(steps.getPullRequestDetails.outputs.IS_MERGED) }} |
102 | 97 | id: getMergeCommitShaIfUnmergedPR |
103 | 98 | run: | |
104 | | - git merge --no-commit ${{ steps.getPullRequestDetails.outputs.HEAD_COMMIT_SHA }} |
| 99 | + git merge --allow-unrelated-histories --no-commit ${{ steps.getPullRequestDetails.outputs.HEAD_COMMIT_SHA }} |
105 | 100 | git checkout ${{ steps.getPullRequestDetails.outputs.HEAD_COMMIT_SHA }} |
106 | 101 | env: |
107 | 102 | GITHUB_TOKEN: ${{ github.token }} |
@@ -140,18 +135,19 @@ jobs: |
140 | 135 | name: baseline-apk-${{ needs.buildBaseline.outputs.VERSION }} |
141 | 136 | path: zip |
142 | 137 |
|
143 | | - # The downloaded artifact will be a file named "app-e2eRelease.apk" so we have to rename it |
| 138 | + # The downloaded artifact will be a file named "app-e2e-release.apk" so we have to rename it |
144 | 139 | - name: Rename baseline APK |
145 | | - run: mv "${{steps.downloadBaselineAPK.outputs.download-path}}/app-e2eRelease.apk" "${{steps.downloadBaselineAPK.outputs.download-path}}/app-e2eRelease-baseline.apk" |
| 140 | + run: mv "${{steps.downloadBaselineAPK.outputs.download-path}}/app-e2e-release.apk" "${{steps.downloadBaselineAPK.outputs.download-path}}/app-e2eRelease-baseline.apk" |
146 | 141 |
|
147 | 142 | - name: Download delta APK |
148 | 143 | uses: actions/download-artifact@e9ef242655d12993efdcda9058dee2db83a2cb9b |
| 144 | + id: downloadDeltaAPK |
149 | 145 | with: |
150 | 146 | name: delta-apk-${{ needs.buildDelta.outputs.DELTA_REF }} |
151 | 147 | path: zip |
152 | 148 |
|
153 | 149 | - name: Rename delta APK |
154 | | - run: mv "${{steps.downloadBaselineAPK.outputs.download-path}}/app-e2eRelease.apk" "${{steps.downloadBaselineAPK.outputs.download-path}}/app-e2eRelease-compare.apk" |
| 150 | + run: mv "${{steps.downloadDeltaAPK.outputs.download-path}}/app-e2e-release.apk" "${{steps.downloadDeltaAPK.outputs.download-path}}/app-e2eRelease-compare.apk" |
155 | 151 |
|
156 | 152 | - name: Copy e2e code into zip folder |
157 | 153 | run: cp -r tests/e2e zip |
@@ -196,7 +192,6 @@ jobs: |
196 | 192 | run: cat "./Host_Machine_Files/\$WORKING_DIRECTORY/debug.log" |
197 | 193 |
|
198 | 194 | - name: Check if test failed, if so post the results and add the DeployBlocker label |
199 | | - if: ${{ github.event_name == 'workflow_call' }} |
200 | 195 | run: | |
201 | 196 | if grep -q '🔴' ./Host_Machine_Files/\$WORKING_DIRECTORY/output.md; then |
202 | 197 | gh pr edit ${{ inputs.PR_NUMBER }} --add-label DeployBlockerCash |
|
0 commit comments