Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix no release tag in android workflow

Prateek Sunal19b03ab11928
diff --git a/.github/workflows/ensu-release.yml b/.github/workflows/ensu-release.yml
index bfb1116862..bdb79f1330 100644
--- a/.github/workflows/ensu-release.yml
+++ b/.github/workflows/ensu-release.yml
@@ -192,6 +192,15 @@ jobs:
working-directory: mobile/native/android/apps/ensu
steps:
+ - name: Set release tag
+ shell: bash
+ run: |
+ if [[ "${{ github.ref }}" == refs/tags/* ]]; then
+ echo "RELEASE_TAG=${{ github.ref_name }}" >> $GITHUB_ENV
+ else
+ echo "RELEASE_TAG=ensu-nightly-$(date -u +%Y%m%d)" >> $GITHUB_ENV
+ fi
+
- name: Checkout code and submodules
uses: actions/checkout@v4
with: