Skip to content

Commit cc1bfef

Browse files
committed
[Copilot] package names should use hyphens
1 parent b7e21fb commit cc1bfef

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
type: choice
1515
options:
1616
- core
17-
- public_health
17+
- public-health
1818

1919
jobs:
2020
create-release:
@@ -43,12 +43,11 @@ jobs:
4343
VERSION="${{ github.event.inputs.version }}"
4444
4545
# Convert package name for different formats
46-
PACKAGE_HYPHEN=$(echo "$PACKAGE" | tr '_' '-') # public_health -> public-health
47-
PACKAGE_TITLE=$(echo "$PACKAGE" | sed 's/_/ /g' | sed 's/\b\w/\u&/g') # public_health -> Public Health
46+
PACKAGE_TITLE=$(echo "$PACKAGE" | sed 's/-/ /g' | sed 's/\b\w/\u&/g') # public-health -> Public Health
4847
49-
echo "TAG_NAME=${PACKAGE_HYPHEN}-v${VERSION}" >> $GITHUB_ENV
48+
echo "TAG_NAME=${PACKAGE}-v${VERSION}" >> $GITHUB_ENV
5049
echo "RELEASE_NAME=${PACKAGE_TITLE} Release v${VERSION}" >> $GITHUB_ENV
51-
echo "PYPI_NAME=sim-sci-test-monorepo-${PACKAGE_HYPHEN}" >> $GITHUB_ENV
50+
echo "PYPI_NAME=sim-sci-test-monorepo-${PACKAGE}" >> $GITHUB_ENV
5251
5352
- name: Create and push tag
5453
run: |

0 commit comments

Comments
 (0)