Skip to content

Commit 438bed3

Browse files
committed
ICU-23121 Fix GHA workflow for ICU4X releases
1 parent eaebf9e commit 438bed3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/icu4c.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ on:
2525
# https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow
2626
inputs:
2727
gitReleaseTag:
28-
description: 'Release tag to upload to. Must start with "release-"'
28+
description: 'Release tag to upload to. Must start with "release-" or "icu4x/"'
29+
type: string
30+
gitReleaseFilename:
31+
description: 'Release tag with no slashes, to be used in file names'
2932
type: string
3033

3134
# For non-release branches (namely: PRs), only run CI on the most recent commit. Cancel
@@ -926,14 +929,14 @@ jobs:
926929
- name: Zip
927930
run: |
928931
cd icu4c/source/icuexportdata
929-
zip -r ../../../icuexportdata_${{ inputs.gitReleaseTag }}.zip .
932+
zip -r ../../../icuexportdata_${{ inputs.gitReleaseFilename }}.zip .
930933
- name: Publish Artifact
931934
uses: actions/upload-artifact@v4
932935
with:
933936
name: icuexportdata_output
934937
path: icuexportdata_*.zip
935938
- name: Upload to release
936-
if: ${{ inputs.gitReleaseTag && startsWith(inputs.gitReleaseTag, 'release-') }}
939+
if: ${{ inputs.gitReleaseTag && (startsWith(inputs.gitReleaseTag, 'release-') || startsWith(input.gitReleaseTag, 'icu4x/')) }}
937940
run: |
938941
gh release upload ${{ inputs.gitReleaseTag }} icuexportdata_*.zip --clobber
939942
env:

0 commit comments

Comments
 (0)