Skip to content

Commit 62affa6

Browse files
committed
Remove refs/tags
1 parent 7a5c9ca commit 62affa6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/kicad-release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ jobs:
1313
- name: Checkout code
1414
uses: actions/checkout@v2
1515
- name: Set version number # Replace [Uncontrolled] with actual tag
16+
env:
17+
GITHUB_REF: ${{ github.ref }}
1618
run: |
17-
sed -i "s~\[Uncontrolled\]~${{ github.ref }}~g" Kicad/*.sch Kicad/*.kicad_pcb
19+
sed -i "s~\[Uncontrolled\]~${GITHUB_REF/#refs\/tags\/}~g" Kicad/*.sch Kicad/*.kicad_pcb
1820
- name: Build project # This would actually build your project, using zip for an example artifact
1921
uses: nerdyscout/[email protected]
2022
with:

0 commit comments

Comments
 (0)