From 7e2a38856d12ce0777232198828e2769824aefcc Mon Sep 17 00:00:00 2001 From: Tom Lauwaerts Date: Thu, 13 Nov 2025 14:43:26 +0100 Subject: [PATCH 1/2] Fix github ref in releaser action --- .github/workflows/releaser.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/releaser.yml b/.github/workflows/releaser.yml index 6501ca1..60d184a 100644 --- a/.github/workflows/releaser.yml +++ b/.github/workflows/releaser.yml @@ -21,7 +21,7 @@ jobs: run: | sed -i 's/"version": "[^"]*"/"version": "${{ env.VERSION }}"/' package.json env: - VERSION: ${{ github.GITHUB_REF#v }} + VERSION: $(echo "${{ github.ref }}" | sed -e 's:v\(.*\):\1:' # clone warduino - uses: actions/checkout@v4 @@ -45,7 +45,7 @@ jobs: sed -i "s|\"latch\": \"file:./latch-[^\"]*\"|\"latch\": \"file:./latch-$VERSION.tgz\"|" package.json working-directory: 'warduino' env: - VERSION: ${{ github.GITHUB_REF#v }} + VERSION: $(echo "${{ github.ref }}" | sed -e 's:v\(.*\):\1:' # commit - name: Push changes @@ -58,7 +58,7 @@ jobs: git push --set-upstream origin bump/latch-$VERSION working-directory: 'warduino' env: - VERSION: ${{ github.GITHUB_REF#v }} + VERSION: $(echo "${{ github.ref }}" | sed -e 's:v\(.*\):\1:' # create pull request - name: Create Pull Request @@ -66,6 +66,6 @@ jobs: gh pr create --title "⬆️ Bump latch to $VERSION" --body "Bumping latch to \`$VERSION\`" --base main --head bump/latch-$VERSION --label dependencies working-directory: 'warduino' env: - VERSION: ${{ github.GITHUB_REF#v }} + VERSION: $(echo "${{ github.ref }}" | sed -e 's:v\(.*\):\1:' GH_TOKEN: ${{ secrets.WARDUINO_LATCH }} From 2eaaf5289d9140ff76da3678fc10e566b9cc708f Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Thu, 13 Nov 2025 14:50:59 +0100 Subject: [PATCH 2/2] [WIP] Fix GitHub ref in releaser action (#37) * Initial plan * Add missing closing parenthesis in VERSION env vars 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> --- .github/workflows/releaser.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/releaser.yml b/.github/workflows/releaser.yml index 60d184a..ff7c937 100644 --- a/.github/workflows/releaser.yml +++ b/.github/workflows/releaser.yml @@ -21,7 +21,7 @@ jobs: run: | sed -i 's/"version": "[^"]*"/"version": "${{ env.VERSION }}"/' package.json env: - VERSION: $(echo "${{ github.ref }}" | sed -e 's:v\(.*\):\1:' + VERSION: $(echo "${{ github.ref }}" | sed -e 's:v\(.*\):\1:') # clone warduino - uses: actions/checkout@v4 @@ -45,7 +45,7 @@ jobs: sed -i "s|\"latch\": \"file:./latch-[^\"]*\"|\"latch\": \"file:./latch-$VERSION.tgz\"|" package.json working-directory: 'warduino' env: - VERSION: $(echo "${{ github.ref }}" | sed -e 's:v\(.*\):\1:' + VERSION: $(echo "${{ github.ref }}" | sed -e 's:v\(.*\):\1:') # commit - name: Push changes @@ -58,7 +58,7 @@ jobs: git push --set-upstream origin bump/latch-$VERSION working-directory: 'warduino' env: - VERSION: $(echo "${{ github.ref }}" | sed -e 's:v\(.*\):\1:' + VERSION: $(echo "${{ github.ref }}" | sed -e 's:v\(.*\):\1:') # create pull request - name: Create Pull Request @@ -66,6 +66,6 @@ jobs: gh pr create --title "⬆️ Bump latch to $VERSION" --body "Bumping latch to \`$VERSION\`" --base main --head bump/latch-$VERSION --label dependencies working-directory: 'warduino' env: - VERSION: $(echo "${{ github.ref }}" | sed -e 's:v\(.*\):\1:' + VERSION: $(echo "${{ github.ref }}" | sed -e 's:v\(.*\):\1:') GH_TOKEN: ${{ secrets.WARDUINO_LATCH }}