Skip to content

Commit 92070ed

Browse files
tolauwaeCopilot
andauthored
Fix github ref in releaser action (#36)
* Fix github ref in releaser action * Add missing parenthesis (#37) Co-authored-by: tolauwae <31000331+tolauwae@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: tolauwae <31000331+tolauwae@users.noreply.github.com> --------- Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
1 parent 1fc61f0 commit 92070ed

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/releaser.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
run: |
2222
sed -i 's/"version": "[^"]*"/"version": "${{ env.VERSION }}"/' package.json
2323
env:
24-
VERSION: ${{ github.GITHUB_REF#v }}
24+
VERSION: $(echo "${{ github.ref }}" | sed -e 's:v\(.*\):\1:')
2525

2626
# clone warduino
2727
- uses: actions/checkout@v4
@@ -45,7 +45,7 @@ jobs:
4545
sed -i "s|\"latch\": \"file:./latch-[^\"]*\"|\"latch\": \"file:./latch-$VERSION.tgz\"|" package.json
4646
working-directory: 'warduino'
4747
env:
48-
VERSION: ${{ github.GITHUB_REF#v }}
48+
VERSION: $(echo "${{ github.ref }}" | sed -e 's:v\(.*\):\1:')
4949

5050
# commit
5151
- name: Push changes
@@ -58,14 +58,14 @@ jobs:
5858
git push --set-upstream origin bump/latch-$VERSION
5959
working-directory: 'warduino'
6060
env:
61-
VERSION: ${{ github.GITHUB_REF#v }}
61+
VERSION: $(echo "${{ github.ref }}" | sed -e 's:v\(.*\):\1:')
6262

6363
# create pull request
6464
- name: Create Pull Request
6565
run: |
6666
gh pr create --title "⬆️ Bump latch to $VERSION" --body "Bumping latch to \`$VERSION\`" --base main --head bump/latch-$VERSION --label dependencies
6767
working-directory: 'warduino'
6868
env:
69-
VERSION: ${{ github.GITHUB_REF#v }}
69+
VERSION: $(echo "${{ github.ref }}" | sed -e 's:v\(.*\):\1:')
7070
GH_TOKEN: ${{ secrets.WARDUINO_LATCH }}
7171

0 commit comments

Comments
 (0)