Skip to content

Commit 7f15f3c

Browse files
Fix for GitHub Actions
1 parent d6130ef commit 7f15f3c

2 files changed

Lines changed: 34 additions & 1 deletion

File tree

.github/workflows/create-github-release.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ jobs:
2323
name: bundles
2424
path: ${{ env.DOWNLOADS_PATH }}
2525

26+
- name: Download mapping from GitHub Artifacts
27+
uses: actions/download-artifact@v4
28+
with:
29+
name: mapping
30+
path: ${{ env.DOWNLOADS_PATH }}
31+
2632
- name: Download Release Notes from GitHub Artifacts
2733
uses: actions/download-artifact@v4
2834
with:
@@ -45,6 +51,19 @@ jobs:
4551
fi
4652
continue-on-error: false
4753

54+
- name: Check mapping is downloaded
55+
run: |
56+
shopt -s nullglob
57+
mapping_files=(${DOWNLOADS_PATH}/*/mapping.txt)
58+
if [ ${#mapping_files[@]} -eq 0 ]; then
59+
echo "No mapping files found in ${DOWNLOADS_PATH}"
60+
exit 1
61+
else
62+
echo "Found ${#mapping_files[@]} mapping file(s) in ${DOWNLOADS_PATH}:"
63+
printf '%s\n' "${mapping_files[@]}"
64+
fi
65+
continue-on-error: false
66+
4867
- name: Get Release Notes
4968
run: |
5069
cd ${DOWNLOADS_PATH}

.github/workflows/deploy-to-open-track.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,20 @@ jobs:
5555
fi
5656
continue-on-error: false
5757

58+
- name: Check mapping is downloaded
59+
run: |
60+
shopt -s nullglob
61+
mapping_files=(${DOWNLOADS_PATH}/*/mapping.txt)
62+
if [ ${#mapping_files[@]} -eq 0 ]; then
63+
echo "No mapping files found in ${DOWNLOADS_PATH}"
64+
exit 1
65+
else
66+
echo "Found ${#mapping_files[@]} mapping file(s) in ${DOWNLOADS_PATH}:"
67+
printf '%s\n' "${mapping_files[@]}"
68+
echo "MAPPING_FILE=${mapping_files[@]}" >> $GITHUB_ENV
69+
fi
70+
continue-on-error: false
71+
5872
- name: Copy Release Notes
5973
run: |
6074
mkdir -p ${DOWNLOADS_PATH}/whatsnew &&
@@ -69,7 +83,7 @@ jobs:
6983
packageName: com.mobiledevpro.closetalk.app
7084
releaseFiles: ${{ env.AAB_FILE }}
7185
# Upload the mapping file
72-
mappingFile: ${{ env.DOWNLOADS_PATH }}/mapping.txt
86+
mappingFile: ${{ env.MAPPING_FILE }}
7387
# Can be 'internal', 'alpha', 'beta', or 'production', or 'internalsharing'
7488
track: beta
7589
# Optional: 'completed', 'draft', 'inProgress', or 'halted'

0 commit comments

Comments
 (0)