mirror of
https://github.com/we-promise/sure.git
synced 2026-04-12 08:37:22 +00:00
Refactor GitHub Actions workflows (#1023)
* Unify release workflows and add chart/mobile wrappers * Update chart CI to kube 1.25 * Fetch tagged commit before pushing release branch * Old `azure/setup-helm` * Base chart dispatch version on existing chart tags * `grep` failure with `pipefail` bypasses the user-friendly error message * `gh-pages` push lacks retry logic * Auto-incremented chart tag collision * `grep -Ev` pipeline will crash * Missed one
This commit is contained in:
11
.github/workflows/mobile-release.yml
vendored
11
.github/workflows/mobile-release.yml
vendored
@@ -33,9 +33,14 @@ jobs:
|
||||
set -euo pipefail
|
||||
|
||||
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
|
||||
BRANCH_NAME="${GITHUB_REF_NAME}"
|
||||
SAFE_BRANCH_NAME="${BRANCH_NAME//\//-}"
|
||||
BASE_TAG="${SAFE_BRANCH_NAME}-$(date -u +'%Y%m%d%H%M')"
|
||||
BASE_STABLE_TAG="$(git tag --list 'v*' --sort=-v:refname | { grep -Ev 'alpha|beta|rc' || true; } | head -n 1)"
|
||||
if [ -z "$BASE_STABLE_TAG" ]; then
|
||||
echo "::error::No stable v* tag found to base mobile patch release on"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
STAMP="$(date -u +'%Y%m%d%H%M')"
|
||||
BASE_TAG="mobile-${BASE_STABLE_TAG}-p${STAMP}"
|
||||
TAG_NAME="$BASE_TAG"
|
||||
TAG_SUFFIX=1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user