Skip to content

Commit db202fb

Browse files
authored
Replace - with ~ in version string on component upload
1 parent 49e27a1 commit db202fb

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/upload_component.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,16 @@ jobs:
1212
- uses: actions/checkout@v4
1313
with:
1414
submodules: 'recursive'
15+
- name: Sanitize version string
16+
id: version
17+
env:
18+
REF: ${{ github.ref_name }}
19+
run: |
20+
echo "value=${REF//-/\~}" >> "$GITHUB_OUTPUT"
1521
- name: Upload components to component service
1622
uses: espressif/upload-components-ci-action@v1
1723
with:
1824
name: "esp-hosted-tanmatsu"
19-
version: ${{ github.ref_name }}
25+
version: ${{ steps.version.outputs.value }}
2026
namespace: "nicolaielectronics"
2127
api_token: ${{ secrets.IDF_COMPONENT_API_TOKEN }}

0 commit comments

Comments
 (0)