diff --git a/.github/workflows/sidestore-deploy.yml b/.github/workflows/sidestore-deploy.yml index f64f4af6..0fa50969 100644 --- a/.github/workflows/sidestore-deploy.yml +++ b/.github/workflows/sidestore-deploy.yml @@ -145,6 +145,20 @@ jobs: echo "files=$FILES" >> $GITHUB_OUTPUT + - name: Set Upstream Recommendation + id: upstream_recommendation + run: | + UPSTREAM_NAME=$(echo "${{ inputs.upstream_name }}" | tr '[:upper:]' '[:lower:]') + if [[ "$UPSTREAM_NAME" != "nightly" ]]; then + echo "content<> $GITHUB_OUTPUT + echo "If you want to try out new features early but want a lower chance of bugs, you can look at [SideStore ${{ inputs.upstream_name }}](https://github.com/${{ github.repository }}/releases?q=${{ inputs.upstream_tag }})." >> $GITHUB_OUTPUT + echo "" >> $GITHUB_OUTPUT + echo "EOF" >> $GITHUB_OUTPUT + else + echo "content=" >> $GITHUB_OUTPUT + fi + shell: bash + - name: Upload to releases uses: IsaacShelton/update-existing-release@v1.3.1 with: @@ -154,20 +168,19 @@ jobs: prerelease: ${{ inputs.is_beta }} files: ${{ steps.list_uploads.outputs.files }} body: | - This is an ⚠️ **EXPERIMENTAL** ⚠️ ${{ inputs.release_name }} build for commit [${{ github.sha }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }}). + This is an ⚠️ **EXPERIMENTAL** ⚠️ ${{ inputs.release_name }} build for commit [${{ github.sha }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }}). - ${{ inputs.release_name }} builds are **extremely experimental builds only meant to be used by developers and beta testers. They often contain bugs and experimental features. Use at your own risk!** + ${{ inputs.release_name }} builds are **extremely experimental builds only meant to be used by developers and beta testers. They often contain bugs and experimental features. Use at your own risk!** - If you want to try out new features early but want a lower chance of bugs, you can look at [SideStore ${{ inputs.upstream_name }}](https://github.com/${{ github.repository }}/releases?q=${{ inputs.upstream_tag }}). + ${{ steps.upstream_recommendation.outputs.content }} + ## Build Info - ## Build Info + Built at (UTC): `${{ steps.date.outputs.date }}` + Built at (UTC date): `${{ steps.date_altstore.outputs.date }}` + Commit SHA: `${{ github.sha }}` + Version: `${{ inputs.version }}` - Built at (UTC): `${{ steps.date.outputs.date }}` - Built at (UTC date): `${{ steps.date_altstore.outputs.date }}` - Commit SHA: `${{ github.sha }}` - Version: `${{ inputs.version }}` - - ${{ steps.release_notes.outputs.content }} + ${{ steps.release_notes.outputs.content }} - name: Get formatted date run: |