mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
Refactor build workflow to use 'marvinpinto/action-automatic-releases' for updating twilight tag
This commit is contained in:
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
@@ -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 }}
|
||||
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user