mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-08-09 00:17:59 +00:00
fix(ci): target releases at selected branch
This commit is contained in:
parent
2c69265324
commit
b1c9d08435
1 changed files with 6 additions and 6 deletions
12
.github/workflows/android-release.yml
vendored
12
.github/workflows/android-release.yml
vendored
|
|
@ -48,12 +48,12 @@ jobs:
|
|||
RELEASE_TAG: ${{ steps.release.outputs.tag }}
|
||||
CURRENT_BUMP: ${{ steps.release.outputs.current_bump }}
|
||||
RELEASE_COMMIT: ${{ steps.release.outputs.release_commit }}
|
||||
CURRENT_BRANCH: ${{ github.ref_name }}
|
||||
DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
|
||||
RELEASE_BRANCH: ${{ github.ref_name }}
|
||||
RELEASE_REF_TYPE: ${{ github.ref_type }}
|
||||
RELEASE_MODE: ${{ inputs.mode }}
|
||||
run: |
|
||||
if [[ "${CURRENT_BRANCH}" != "${DEFAULT_BRANCH}" ]]; then
|
||||
echo "Releases must run from the default branch (${DEFAULT_BRANCH}), not ${CURRENT_BRANCH}." >&2
|
||||
if [[ "${RELEASE_REF_TYPE}" != "branch" ]]; then
|
||||
echo "Releases must be dispatched from a branch, not ${RELEASE_REF_TYPE}." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
@ -173,7 +173,7 @@ jobs:
|
|||
RELEASE_MODE: ${{ inputs.mode }}
|
||||
RELEASE_TAG: ${{ steps.release.outputs.tag }}
|
||||
RELEASE_VERSION: ${{ steps.release.outputs.version }}
|
||||
RELEASE_COMMIT: ${{ steps.release.outputs.release_commit }}
|
||||
RELEASE_BRANCH: ${{ github.ref_name }}
|
||||
run: |
|
||||
mapfile -t release_apks < <(find androidApp/build/outputs/apk/full/release -maxdepth 1 -type f -name '*.apk' -print | sort)
|
||||
if (( ${#release_apks[@]} == 0 )); then
|
||||
|
|
@ -183,7 +183,7 @@ jobs:
|
|||
|
||||
release_args=(
|
||||
"${RELEASE_TAG}"
|
||||
--target "${RELEASE_COMMIT}"
|
||||
--target "${RELEASE_BRANCH}"
|
||||
--title "${RELEASE_VERSION}"
|
||||
--notes-file release-notes.md
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue