mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 21:43:24 -07:00
Fix Rename Step Syntax
This commit is contained in:
parent
6f04ab8575
commit
c18e7e959b
1 changed files with 2 additions and 2 deletions
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
|
@ -136,8 +136,8 @@ jobs:
|
||||||
- name: Rename installer for non-release branch
|
- name: Rename installer for non-release branch
|
||||||
if: env.IS_RELEASE_BRANCH != 'true'
|
if: env.IS_RELEASE_BRANCH != 'true'
|
||||||
run: |
|
run: |
|
||||||
$branch = "${{ github.ref }}" -replace '^refs/heads/', ''
|
branch="${BRANCH_NAME:-${GITHUB_REF#refs/heads/}}"
|
||||||
$sanitized = $branch -replace '[^a-zA-Z0-9._-]', '_'
|
sanitized=$(echo "$branch" | sed 's/[^a-zA-Z0-9._-]/_/g')
|
||||||
mv drop/Greenshot-INSTALLER-*.exe "drop/Greenshot-INSTALLER-${sanitized}.exe"
|
mv drop/Greenshot-INSTALLER-*.exe "drop/Greenshot-INSTALLER-${sanitized}.exe"
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue