Refactor build workflow to use 'marvinpinto/action-automatic-releases' for updating twilight tag

This commit is contained in:
mauro-balades
2024-10-06 10:59:05 +02:00
parent 09f673d94c
commit c5ab69f38d
2 changed files with 5 additions and 11 deletions

View File

@@ -409,7 +409,7 @@ jobs:
# If we are on twilight, we want to just update the twilight tag's release
- name: Update twilight tag
if: ${{ inputs.update_branch == 'twilight' }}
uses: softprops/action-gh-release@v2
uses: 'marvinpinto/action-automatic-releases@latest'
with:
files: |
zen.source.tar.gz
@@ -431,17 +431,11 @@ jobs:
zen.installer-generic.exe
zen.macos-x64.dmg
zen.macos-aarch64.dmg
tag_name: 'twilight'
name: 'Twilight build - ${{ needs.build-data.outputs.version }} (${{ needs.build-data.outputs.build_date }})'
body: |
# Zen Twilight Build
This is the latest build from the twilight branch. It is updated more recently than the alpha branch.
* This build is not recommended for daily use, it may contain bugs, issues, and other problems.
automatic_release_tag: 'twilight'
title: 'Twilight build - ${{ needs.build-data.outputs.version }} (${{ needs.build-data.outputs.build_date }})'
draft: false
prerelease: true
token: ${{ github.token }}
repo_token: ${{ github.token }}
env:
GITHUB_REPOSITORY: ${{ github.repository }}

View File

@@ -113,7 +113,7 @@ var ZenThemeModifier = {
},
_getThemedAvatar(avatarPath) {
if (!avatarPath.startsWith('chrome://browser/content/zen-avatars/avatar-') || !avatarPath.endsWith('.svg')) {
if (!avatarPath || !avatarPath.startsWith('chrome://browser/content/zen-avatars/avatar-') || !avatarPath.endsWith('.svg')) {
return avatarPath;
}
let withoutExtension = avatarPath.slice(0, -4);