Skip to content

Commit db8848d

Browse files
CopilotCyl18
andcommitted
Update artifact naming format: add hyphen after PR and use underscore for slug separators
Co-authored-by: Cyl18 <14993992+Cyl18@users.noreply.github.com>
1 parent 16c7e22 commit db8848d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/pr-packer.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ jobs:
129129
if [ ${#slug_array[@]} -eq 0 ]; then
130130
slug_suffix=""
131131
elif [ ${#slug_array[@]} -le 3 ]; then
132-
slug_suffix="-$(IFS=-; echo "${slug_array[*]}")"
132+
slug_suffix="-$(IFS=_; echo "${slug_array[*]}")"
133133
else
134-
slug_suffix="-${slug_array[0]}-${slug_array[1]}-${slug_array[2]}-etc"
134+
slug_suffix="-${slug_array[0]}_${slug_array[1]}_${slug_array[2]}_etc"
135135
fi
136136
137137
echo "slug-suffix=$slug_suffix" >> $GITHUB_OUTPUT
@@ -141,6 +141,6 @@ jobs:
141141
- name: Upload Artifact for ${{ matrix.version }}
142142
uses: actions/upload-artifact@v4
143143
with:
144-
name: Minecraft-Mod-Language-Package-${{ matrix.version }}-PR${{ github.event.pull_request.number || 'manual' }}${{ steps.extract-slugs.outputs.slug-suffix }}
144+
name: Minecraft-Mod-Language-Package-${{ matrix.version }}-PR-${{ github.event.pull_request.number || 'manual' }}${{ steps.extract-slugs.outputs.slug-suffix }}
145145
path: Minecraft-Mod-Language-Package-${{ matrix.version }}/*
146146
if: steps.check-changes.outputs.changed == 'true' || github.event_name == 'workflow_dispatch'

0 commit comments

Comments
 (0)