You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(gh-action): align version management mobile and extension (#73)
* feat(gh-action): align version management mobile and extension
These changes are for unifying the release process between extension and
mobile, including made the same release version branch, which is
different at the moment.
It will create `"release/${new_version}"` branches as a pattern.
* chore: add conditional for updating the spreadsheet
For testing, we don't wanna execute the spreadsheet step, just create
the commits csv file.
* chore: set ref code to call
* chore: conditional to skip update GC document
* chore: improve conditionals
To allow to re-run the workflow, in case there aren't changes to push to
remote
* chore: check if pr already exists
* chore: improve inputs
* chore: restore step removed for test
* chore: remove repeated steps, and improve script
This will tackle the same things for mobile and extensions, adding the
conditionals to execute mobile specific steps
* chore: control changelog branch already exists on remote
* chore: more checks
* chore(inputs): print inputs values
* chore: fix linter
and remove unused commented lines
* chore: update .github/scripts/create-platform-release-pr.sh
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
# Need to run from .github-tools context to inherit it's dependencies/environment
@@ -163,14 +206,19 @@ ls -ltra
163
206
corepack prepare yarn@4.5.1 --activate
164
207
# This can't be done from the actions context layer due to the upstream repository having it's own context set with yarn
165
208
yarn --cwd install
209
+
166
210
echo"Generating test plan csv.."
167
211
yarn run gen:commits "${PLATFORM}""${PREVIOUS_VERSION}""${RELEASE_BRANCH_NAME}""${PROJECT_GIT_DIR}"
168
212
169
-
echo"Updating release sheet.."
170
-
# Create a new Release Sheet Page for the new version with our commits.csv content
171
-
yarn run update-release-sheet "${PLATFORM}""${NEW_VERSION}""${GOOGLE_DOCUMENT_ID}""./commits.csv""${PROJECT_GIT_DIR}""${MOBILE_TEMPLATE_SHEET_ID}""${EXTENSION_TEMPLATE_SHEET_ID}"
213
+
if [[ "${TEST_ONLY:-false}"=='false' ]];then
214
+
echo"Updating release sheet.."
215
+
# Create a new Release Sheet Page for the new version with our commits.csv content
216
+
yarn run update-release-sheet "${PLATFORM}""${NEW_VERSION}""${GOOGLE_DOCUMENT_ID}""./commits.csv""${PROJECT_GIT_DIR}""${MOBILE_TEMPLATE_SHEET_ID}""${EXTENSION_TEMPLATE_SHEET_ID}"
217
+
fi
172
218
cd ../
173
219
220
+
# Commit and Push Changelog Changes
221
+
# -------------------------------
174
222
echo"Adding and committing changes.."
175
223
git add ./commits.csv
176
224
@@ -186,12 +234,20 @@ PR_BODY="This PR updates the change log for ${NEW_VERSION} and generates the tes
0 commit comments