Skip to content

Commit

Permalink
Remove /refs/*/ from the installer name (#1835)
Browse files Browse the repository at this point in the history
* Remove /refs/tags from the installer name
* Try to use a pattern /refs/*/ instead of direct /refs/heads
* Replace "/" with "-" in installer name
  • Loading branch information
MinyazevR authored Nov 25, 2024
1 parent c126947 commit 2c3b86e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/setup_environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ jobs:

- name: Build Installer
run: |
BRANCH_NAME=${BRANCH_NAME//\//-}
buildScripts/github/build_installer.sh
env:
TRIK_QT_VERSION: ${{ inputs.trik_qt_version }}
Expand Down
4 changes: 3 additions & 1 deletion buildScripts/github/build_installer.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
set -euxo pipefail
BRANCH_NAME="${BRANCH_NAME:-${GITHUB_REF#refs/heads/}}"
BRANCH_NAME="${BRANCH_NAME:-${GITHUB_REF#refs/*/}}"
BRANCH_NAME=${BRANCH_NAME//\//-}

QTBIN=${QTBIN:-$($EXECUTOR bash -c 'eval $(make qmake -n | cut -f 1 -d " ") -query QT_INSTALL_BINS')}
case $RUNNER_OS in
macOS)
Expand Down

0 comments on commit 2c3b86e

Please sign in to comment.