Skip to content

Commit f5f37f6

Browse files
committed
chore: add conditional for updating the spreadsheet
For testing, we don't wanna execute the spreadsheet step, just create the commits csv file.
1 parent 8f7f267 commit f5f37f6

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/scripts/create-platform-release-pr.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,11 @@ yarn --cwd install
184184
echo "Generating test plan csv.."
185185
yarn run gen:commits "${PLATFORM}" "${PREVIOUS_VERSION}" "${RELEASE_BRANCH_NAME}" "${PROJECT_GIT_DIR}"
186186

187-
echo "Updating release sheet.."
188-
# Create a new Release Sheet Page for the new version with our commits.csv content
189-
yarn run update-release-sheet "${PLATFORM}" "${NEW_VERSION}" "${GOOGLE_DOCUMENT_ID}" "./commits.csv" "${PROJECT_GIT_DIR}" "${MOBILE_TEMPLATE_SHEET_ID}" "${EXTENSION_TEMPLATE_SHEET_ID}"
187+
if [[ "${TEST_ONLY:-true}" != "true" ]]; then
188+
echo "Updating release sheet.."
189+
# Create a new Release Sheet Page for the new version with our commits.csv content
190+
yarn run update-release-sheet "${PLATFORM}" "${NEW_VERSION}" "${GOOGLE_DOCUMENT_ID}" "./commits.csv" "${PROJECT_GIT_DIR}" "${MOBILE_TEMPLATE_SHEET_ID}" "${EXTENSION_TEMPLATE_SHEET_ID}"
191+
fi
190192
cd ../
191193

192194
# Commit and Push Changelog Changes

0 commit comments

Comments
 (0)